:root {
    --marker-height: 0.4em;
    --marker-color: #ffe24a;
    --marker-color2: #ff95c7;
    --before-left: 102%;

    --expo-image-border-radius: 5px !important;

    --sumi-black: #0a0a0a;
    --charcoal: #1a1a1a;
    --ash-gray: #404040;
    --stone-gray: #808080;
    --silver-gray: #c0c0c0;
    --pure-white: #ffffff;
    --accent-red: #cc3333;
    --warm-red: #d44444;
    --accent-gold: #b8860b;

}

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

body {
    /*font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', 'Meiryo', 'MS PGothic', sans-serif;*/
    /*font-family: "M PLUS Rounded 1c", "M PLUS 1p", sans-serif;*/
    font-family: "Zen Old Mincho", serif;
    font-family: serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    color: #000;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    letter-spacing: 1px;
}



p,
div,
.home-parag-under-title,
.news-date {
    font-size: 1.1rem;
}

a {
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}


.logo img {
    width: 90px;
    position: relative;
}

body .text-center {
    text-align: center !important;
}

h2 {
    position: relative;
}

.subpage h2 {
    margin-bottom: 4rem;
}

img {
    width: 100%;
    vertical-align: bottom;
    transition: 0.3s;
}

.logo_in_content {
    width: initial;
}

.title-theme-en {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    color: #7c0c58;
    font-weight: 600;
}

.title-theme-en.white-en {
    text-align: center;
}

.title_span>img {
    height: 1.1em;
    vertical-align: bottom;
    margin-right: .25em;
    position: relative;
    top: -8px;
}

.title_span {
    position: relative;
    display: inline;
    line-height: 1.35;
    padding-inline: .15em;
    background-image: linear-gradient(to bottom, transparent calc(100% - var(--marker-height)), var(--marker-color) 0);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

#latest_news {
    margin-bottom: 4rem;
}

/* 好み：太さのレスポンシブ */
@media (max-width: 480px) {
    .title_span {
        --marker-height: 0.56em;
    }
}

.none-checkpoint {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem 1rem;
}

.header.home-header {
    background-color: rgba(255, 255, 255, var(--bgOpacity, 0));
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* ヘッダーを隠すスタイル */
.header.header-hidden {
    transform: translateY(-100%);
}

/* ヘッダーを表示するスタイル */
.header.header-visible {
    transform: translateY(0);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;

}

.nav-links a {
    text-decoration: none;
    color: #002680;
    font-weight: 700;
    transition: color 0.3s ease;
    font-family: "Noto Serif JP", serif;
    position: relative;
    opacity: 1;
}

.nav-links li a:hover::after {
    bottom: -4px;
    opacity: 1;
    visibility: visible;
    color: #7c0c58;
}

.nav-links li a::after {
    position: absolute;
    bottom: -8px;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #333;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888888;
    position: relative;
    margin-top: 5rem;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.subpage.contents-section .section-content  {
        height: 4rem;
}

.section-content-img {
	background-image:  url(images/t1e.jpg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;

	height: 100%;
	width: 100%;
	padding-top: 5rem;
	padding-bottom: 5rem;
	z-index: 2;
	position: relative;
}
.section.hero {
    margin-bottom: 0;
    padding: 0;
    margin-top: 7rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>') center/cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 0;
    letter-spacing: 0.1em;
    color: white;
    line-height: 1;
    position: relative;
    opacity: 0;
    visibility: hidden;
}

span.split-line.subline {
    font-size: 60%;
}


.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #7c0c58;
    background: #00296d;
    /*background: linear-gradient(135deg, #00296d 0%, #7c0c58 75%);*/

    color: var(--pure-white);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}


.hero-title-en {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--stone-gray);
    margin-bottom: 4rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--ash-gray);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.hero-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-red);
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--warm-red);
    transition: left 0.3s ease;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta span {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    /*margin-bottom: 2rem;*/
    opacity: 0.9;
}

/* ヒーローセクション - サブページ用 */
.subpage .hero.sub-page {
    height: auto;
    min-height: auto;
}

.subpage .hero.sub-page {
    height: auto;
    min-height: auto;
    flex-direction: column;
}

.hero.sub-page .section-content-img {
    height: 100%;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: #072f71;
}

.service-page.hero.sub-page .section-content-img {
    background: url(images/title-bg1.jpg);
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
}

.company-page.hero.sub-page .section-content-img {
    background: url(images/title-bg2.jpg);
    background-size: cover;
    background-position-x: center;
    background-position-y: bottom;
}

.contact-page.hero.sub-page .section-content-img {
    background: url(images/title-bg3.jpg);
    background-size: cover;
    background-position-x: center;
    background-position-y: bottom;
}

.privacy-page.hero.sub-page .section-content-img {
    background: url(images/title-bg4.jpg);
    background-size: cover;
    background-position-x: center;
    background-position-y: bottom;
}

.hero.sub-page h1.hero-title {
    font-size: 2.5rem;
    margin: 0;
    opacity: 1;
    visibility: visible;
    line-height: 1;
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
        flex-direction: column;
}


/* Main Content */
.container {
    margin: 0 auto;
    padding: 0 2rem;
    max-width: 1280px;
}

.container.gallery-container {
    max-width: 100%;
    padding: 0;
}

.section {
    padding: 5rem 0rem;
    margin-bottom: 0;
}

.section-title {
    font-size: 2rem;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    text-align: left;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    line-height: 1;
    letter-spacing: 4px;
    font-feature-settings: "palt";
}

.section-title span.title_minitext {
    font-size: 75%;
}

.section-subtitle {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Mission Section */
.section.mission {
    background: #f8f9fa;
    padding: 6rem 4rem 2rem;
}

.mission-content {
    margin: 0 auto;
    text-align: center;
}

.mission-title {
    font-size: 1.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: bold;
}

#seminar_information {
    margin-bottom: 2rem;
    padding: 3rem 0;
}


#seminar_information * {
    color: white;
}

#seminar_information .seminar-bar {
    width: 120%;
    height: 100%;
    left: 102%;
    position: absolute;
    background: linear-gradient(35deg, #7c0c58, rgba(124, 12, 88, 0.73));
    top: 0;
    left: var(--before-left);
    transform: rotate(-5deg);
    display: inline-block;
    box-shadow: 14px 9px 0px #e9e9e9;
}

#seminar_information h2 {
    text-shadow: rgb(129 73 111) 3px 2px 1px;
}

.mission-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.mission-highlight {
    font-weight: bold;
}

.mission-highlight-marker {
    position: relative;
    display: inline;
    line-height: 1.35;
    padding-inline: .15em;
    background-image: linear-gradient(to bottom, transparent calc(100% - var(--marker-height)), var(--marker-color2) 0);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


/* Services Grid */
.services-grid {
    display: flex;
    gap: 3rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: initial;
    margin-left: auto;
    margin-top: 6rem;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 5rem 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    flex: calc(33.3% - 1.5rem);
    flex-grow: 0;

}

.service-card:before {
    width: 100%;
    height: 100%;
    position: absolute;
    content: "";
    display: inline-block;
    top: 0;
    left: 0;
    border-radius: 0.3rem;
    transform: skewY(355deg);
    background-size: cover;
    z-index: -1;
}

.voice-from-supporters {
    margin-top: 6rem;
    margin-bottom: 2rem;
}

section.testimonials.section.voice-from-supporters:before,
section.testimonials.section.voice-from-supporters:after {
    width: 100%;
    height: 100%;
    position: absolute;
    content: "";
    display: inline-block;
    top: 0;
    left: 0;
    opacity: 0.5;
}

section.testimonials.section.voice-from-supporters:before {
    transform: skewY(355deg);
    z-index: -1;
    background: #e7d4f1;
}

section.testimonials.section.voice-from-supporters:after {
    transform: skewY(365deg);
    background: #d77d7d;
    z-index: -2;
}

section.testimonials.section.voice-from-supporters h2 {
    text-shadow: rgb(255, 255, 255) 4px 2px 1px;
}

.service-card#service1:before {
    background-image: url(images/service-bg-img1e.jpg);
    background-size: cover;
}

.service-card#service2:before {
    background-image: url(images/service-bg-img2e.jpg);
    background-size: cover;
}

.service-card#service3:before {
    background-image: url(images/service-bg-img3e.jpg);
    background-size: cover;
}

.service-card * {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    margin: calc(-2rem - 40px) auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-concept {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1.4rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials {
    position: relative;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: initial;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    flex: calc(33.3333333333% - 1.5rem);
    flex-grow: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: #bdc3c7;
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.author-info h4 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-text {
    color: #555;
}

/* News Section */
.news-items {

    max-width: 800px;
    margin: 0 auto;
}

.seminar-items {
    max-width: 1480px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #bcbcbc;
}

.news-date {
    min-width: 120px;
    color: #666;
    font-size: 0.9rem;
}

.news-content {
    flex: 1;
}

.news-title {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
}

a.news-title span {
    font-size: 80%;
    border: 1px solid #2c3e50;
    border-radius: 5px;
    padding: 0.1rem 0.5rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3498db;
}

.pdg_lr0_pc_tablet {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mission-grid {
    display: grid;
    grid-template-columns: 43% 53%;
    place-content: center;
    gap: 4%;
    place-items: center;
}

.owl-nav {
    margin-top: 1.5rem;
    text-align: center;
}

.owl-dots {
    margin-top: 0.5rem;
    text-align: center;
}

button.owl-next span,
button.owl-prev span {
    font-size: 1.5rem;
    background: #ffffff20;
    width: 100px;
    display: inline-block;
    line-height: 1;
    margin: auto 0.5rem;
    border-radius: 2rem;
    padding-bottom: 0.5rem;
    transition: 0.3s;
}

button.owl-next span:hover,
button.owl-prev span:hover {

    background: #ffffff50;
    transition: 0.3s;
}

button.owl-dot span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffffff;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    border-radius: 1rem;
}


/*------------------------------------------------------------
	フッター
------------------------------------------------------------*/
#gFooter {
    padding: 80px 0 32px;
}

#gFooter .fBox {
    margin: 0 auto 29px;
    padding: 0 20px;
    max-width: 1400px;
}

#gFooter .fTopBox {
    margin-bottom: 30px;
    display: flex;
}

#gFooter .fTopBox .fLBox {
    margin-right: 84px;
    width: 636px;
}

#gFooter .fTopBox .fLBox .fLogo {
    margin-bottom: 45px;
}

#gFooter .fTopBox .fLBox .fLogo a {
    width: 100%;
    display: block;
}

#gFooter .fTopBox .fLBox .snsList {
    margin-bottom: 43px;
    display: flex;
    align-items: center;
}

#gFooter .fTopBox .fLBox .snsList li {
    margin-right: 30px;
    width: 30px;
}

#gFooter .fTopBox .fLBox .snsList li:nth-child(4) {
    width: 25px;
}

#gFooter .fTopBox .fLBox .snsList li a {
    display: block;
}

#gFooter .fTopBox .fLBox .fNavi {
    margin-top: -11px;
    padding: 31px 0 41px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #707070;
}

#gFooter .fTopBox .fLBox .fNavi::after {
    width: calc((100% - 20px) / 3);
    content: '';
}

#gFooter .fTopBox .fLBox .fNavi li {
    margin-top: 11px;
    width: calc((100% - 20px) / 3);
}

#gFooter .fTopBox .fLBox .fNavi li a {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: .3s;
}

#gFooter .fTopBox .fLBox .fNavi li a::after {
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: -8px;
    background-color: #464343;
    content: '';
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

#gFooter .fTopBox .fRBox {
    width: 527px;
}

#gFooter .fTopBox .fRBox .fLinkList {
    margin: -20px 0 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#gFooter .fTopBox .fRBox .fLinkList li {
    margin-top: 20px;
    width: 245px;
    display: flex;
}

#gFooter .fTopBox .fRBox .fLinkList li a {
    padding: 17px;
    width: 100%;
    color: #fff;
    font-weight: bold;
    line-height: 1.33;
    letter-spacing: 0.12em;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
    border: 1px solid #007b80;
    background-color: #007b80;
    font-family: 'Noto Sans JP', sans-serif;
    transition: .4s;
}

#gFooter .fTopBox .fRBox .fLinkList li:last-of-type a {
    border: 1px solid #002680;
    background-color: #002680;
}

#gFooter .fTopBox .fRBox .title {
    margin-bottom: 21px;
    padding-bottom: 1px;
    font-size: 3rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #707070;
}

#gFooter .fTopBox .fRBox dt {
    margin-top: 7px;
    padding: 8px 10px 10px;
    width: 160px;
    float: left;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    background-color: #464343;
    font-family: 'Noto Sans JP', sans-serif;
}

#gFooter .fTopBox .fRBox dd {
    padding: 0 0 8px 7.7em;
    font-weight: 600;
    letter-spacing: 0.06em;
}

#gFooter .fTopBox .fRBox dd:last-of-type {
    padding-bottom: 0;
}

#gFooter .fLogo01 a {
    width: 200px;
    display: block;
}

#gFooter .copyright {
    padding: 0 40px;
    letter-spacing: 0.12em;
    margin-top: 4em;
    text-align: right;
    font-size: 0.75em;
}

#gFooter .fTopBox .fLBox .fLogo {
    margin: 0 auto;
}

#gFooter .fTopBox {
    justify-content: center;
}

#gFooter .fTopBox .fLBox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#gFooter .fTopBox .fLBox .fLogo {
    margin: 0 auto;
}

#gFooter .fTopBox .fLBox .fNavi {
    width: 100%;
    margin-top: 0;
    border-bottom: none;
}

#gFooter .fTopBox .fRBox .title {
    margin: 47.5px 0 35px !important;
}

.title-theme-en {
    margin-bottom: 0.5rem;
}

#hero-decoration-a {
    content: "";
    width: 94%;
    height: 50%;
    position: absolute;
    display: inline-block;
    top: 45%;
    left: 5%;
    opacity: 0.5;
    background: #7c0c58;
    transform: rotate(5deg);
    z-index: 1;
    filter: blur(0px);
}

#hero-decoration-b {
    content: "";
    width: 94%;
    height: 50%;
    position: absolute;
    display: inline-block;
    top: 45%;
    left: 1%;
    opacity: 0.5;
    background: #00296d;
    transform: rotate(-5deg);
    z-index: 1;
    filter: blur(0px);
}

#hero-decoration-c {
    width: 94%;
    height: 50%;
    position: absolute;
    display: inline-block;
    top: 7%;
    left: 1%;
    opacity: 0.5;
    background: #00296d;
    transform: rotate(5deg);
    z-index: 1;
    filter: blur(0px);
}

#hero-decoration-d {
    width: 94%;
    height: 50%;
    position: absolute;
    display: inline-block;
    top: 7%;
    left: 5%;
    opacity: 0.5;
    background: #7c0c58;
    transform: rotate(-5deg);
    z-index: 1;
    filter: blur(0px);
}

.home-parag-under-title {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* footer全体 */
#footer {
    background: #fff;
    /* 明示的に白背景 */
    padding: 2rem 1rem;

    color: #333;
}

/* wrapper横並び */
.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 左右50%ずつ */
.footer-left,
.footer-right {
    flex: 1 1 50%;
    box-sizing: border-box;
}

/* ロゴと右タイトル共通 */
.footer-title-left,
.footer-title-right {
    width: 100%;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #999;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    vertical-align: bottom;
    min-height: 60px;
}

.footer-title-right img {
    width: 80px;
    margin-right: 0.5rem;
}

.footer-title-left {

    text-align: center;
}

.footer-title-left img {
    width: 80px;
    position: relative;
    top: -0.5rem;
}

/* ナビ共通 */
.footer-navi-left,
.footer-navi-right {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3カラム */
    gap: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.footer-navi-left li,
.footer-navi-right li {
    margin: 0.3rem 0;
}

.footer-navi-left a,
.footer-navi-right a {
    color: #002680;
    text-decoration: none;
    position: relative;
}

.footer-navi-left a {
    opacity: 1;
}

.footer-navi-left a:hover::after {
    bottom: -4px;
    opacity: 1;
    visibility: visible;
    color: #7c0c58;
}

.footer-navi-left a::after {
    position: absolute;
    bottom: -8px;
    left: 0;
    content: '';
    width: 100%;
    height: 0.5px;
    background: #333;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.footer-navi-left li {
    line-height: 1.3;
}

/* コピーライト */
.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}

.testimonial-author:before {
    content: "";
    width: 100%;
    position: absolute;
    background: #fff;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 4px;
}

.testimonial-author:after {
    content: "";
    width: 100%;
    position: absolute;
    background: rgba(124, 12, 88, 0.25);
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(5deg);
    z-index: -2;
    border-radius: 4px;

}

ul.footer-navi-right li a img {
    width: 67%;
}

#morinojumokuso_footer_logo {
    position: relative;
    top: -8px;
}

#terapay_footer_logo {
    position: relative;
    top: -4px;
}


#app {
    height: 45rem;
    margin-top: -4rem;
    margin-bottom: -4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% + 8rem);
    margin-left: -4rem;
    margin-right: 4rem;
}

/* --- .demo-nav --- */
.demo-nav {
    width: 100%;
    height: 48px;
    flex-shrink: 0;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: stretch;
    color: #fff;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px 16px;
    z-index: 10;
    font-family: monospace;
    font-size: 12px;
}

.demo-nav button,
.demo-nav label {
    padding: 0 8px;
    border-radius: 32px;
    height: 100%;
    font-size: 12px;
    font-family: monospace;
    appearance: none;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition-duration: 100ms;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.demo-nav button.active,
.demo-nav label.active {
    background: #114df1;
    border-color: rgba(255, 255, 255, 0.2);
}

.demo-nav button:not(.active):hover,
.demo-nav label:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.demo-nav .demo-nav-segmented {
    display: flex;
    align-items: center;
}

.demo-nav .demo-nav-segmented button {
    width: 96px;
    padding: 0;
}

.demo-nav .demo-nav-segmented button:first-child {
    border-radius: 32px 0 0 32px;
    border-right: none;
}

.demo-nav .demo-nav-segmented button:nth-child(2) {
    border-radius: 0 32px 32px 0;
}

.demo-nav label input {
    display: none;
}

/**/

.swiper {
    max-width: 100%;
}

.swiper-horizontal {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: auto 0;
}

.swiper-vertical {
    height: 100%;
    aspect-ratio: 9 / 16;
}

/* --- Expo content --- */
.expo-content {
    padding: 16px;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.1;
    text-wrap-style: balance;
    display: flex;
    align-items: flex-end;
    /* 互換性のため end -> flex-end */
    box-sizing: border-box;
    color: #fff;
    font-size: 5.6vw;
    visibility: hidden;
}

body.content-visible .expo-content {
    visibility: visible;
}

.swiper-vertical .expo-content {
    font-size: 4.5vh;
}

li.header_sns_icon img {
    width: 2rem;
    height: 2rem;
}

ul#sns_icons {
    display: flex;
    gap: 2rem;
    list-style: none;
    text-align: center;
    justify-content: center;
    margin-top: 3rem;
}

.button-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin: 0 auto;
    padding: .9em 2em;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background-color: #00000060;
    color: #ffffff;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-family: serif;
    text-decoration: none;
}

.button-1::after {
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    content: '';
    transition: border-color 0.3s ease;
}

.button-1:hover {
    background-color: #ffffff;
    color: #333333;
    opacity: 1;
}

.button-1:hover::after {
    border-top-color: #333333;
    border-right-color: #333333;
}

.button-1.button1-color-a {
    background-color: #002680;
    border: 1px solid #002680;
}

.button-1.button1-color-a:hover {
    background-color: #ffffff;
    color: #002680;
}


/* ====================================== */
/* ====================================== */

/* ===== Mobile Menu (<=820pxで表示) ===== */
.hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1101;
    /* オーバーレイより前 */
}

.hamburger .hamburger-bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #333;
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.hamburger .hamburger-bar:nth-child(1) {
    top: 14px;
}

.hamburger .hamburger-bar:nth-child(2) {
    top: 21px;
}

.hamburger .hamburger-bar:nth-child(3) {
    top: 28px;
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

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

.hamburger.is-open .hamburger-bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* フルスクリーンオーバーレイ */
.mm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    background: rgb(0 38 128 / 85%);
    backdrop-filter: blur(8px);
    z-index: 1100;
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mm-overlay.is-open {
    transform: translateY(0);
    opacity: 1;
}

.mm-overlay[aria-hidden="true"] {
    pointer-events: none;
}

.mm-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;   /* 旧ブラウザ用 */
    height: 100dvh;  /* 新ブラウザで上書き */
    width: 100%;
    padding: 100px 20px 30px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* メニューコンテナ */
.mm-menu-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* レベル1メニュー */
.mm-level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* メニュー項目の改善 */
.mm-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.mm-row {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    transition: background-color 0.3s ease;
}

.mm-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mm-row:active {
    background: rgba(255, 255, 255, 0.15);
}

/* リンク部分の改善 */
.mm-link {
    flex: 1;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: .05em;
    font-weight: 500;
    padding: 18px 20px;
    display: block;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.mm-link:hover {
    transform: translateX(8px);
}

/* トグルボタンの改善 */
.mm-toggle {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mm-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.mm-toggle:active {
    transform: scale(0.95);
}

.mm-toggle::before,
.mm-toggle::after {
    content: "";
    position: absolute;
    background: #fff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mm-toggle::before {
    width: 16px;
    height: 2px;
}

.mm-toggle::after {
    width: 2px;
    height: 16px;
}

.mm-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mm-toggle[aria-expanded="true"] {
    background: rgba(255, 149, 199, 0.2);
    border-color: rgba(255, 149, 199, 0.4);
}

/* サブメニューの改善 */
.mm-level-2 {
    list-style: none;
    margin: 0;
    padding: 0 0 0 30px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(255, 149, 199, 0.6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        padding 0.4s ease;
}

.mm-level-2.is-open {
    max-height: 300px;
    padding: 15px 0 15px 30px;
}

.mm-level-2 li {
    margin: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mm-level-2.is-open li {
    opacity: 1;
    transform: translateX(0);
}

.mm-level-2.is-open li:nth-child(1) {
    transition-delay: 0.1s;
}

.mm-level-2.is-open li:nth-child(2) {
    transition-delay: 0.2s;
}

.mm-level-2.is-open li:nth-child(3) {
    transition-delay: 0.3s;
}

.mm-sublink {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: .03em;
    font-weight: 400;
    padding: 12px 10px;
    display: block;
    border-radius: 6px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mm-sublink:hover {
    color: #ffe24a;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #ffe24a;
    transform: translateX(8px);
}

.mm-sublink:active {
    background: rgba(255, 255, 255, 0.2);
}

/* フッターアイコン */
.mm-footer-icons {
    display: grid;
    grid-auto-flow: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin-top: auto;
}

.mm-footer-icons a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mm-footer-icons a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mm-footer-icons a:active {
    transform: translateY(-1px);
}

.mm-footer-icons img {
    max-width: 29px;
    max-height: 29px;
    filter: brightness(0) invert(1);
}

.mm-footer-icons img#mm-footer-icon-x {
    max-width: 22px;
    max-height: 22px;
}

/* 閉じるボタンの改善 */
.mm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mm-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.mm-close:active {
    transform: scale(0.95);
}

.mm-close::before,
.mm-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease;
}

.mm-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mm-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* メニューオープン時のbody固定 */
body.mm-lock {
    overflow: hidden;
}

.contents-section {
    overflow: hidden;
}

.mission-grid-img img {
    width: 100%;
}

/* TOPに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c0c58, #00296d);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 12, 88, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    font-family: "Noto Serif JP", serif;
}

.back-to-top.scrolled {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(124, 12, 88, 0.4);
    background: linear-gradient(135deg, #8f1466, #003785);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.02);
}

/* 上向き矢印 */
.back-to-top::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #ffffff;
    margin-bottom: 2px;
}

/* TOPテキスト */
.back-to-top::after {
    content: "TOP";
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* Animation classes - removed initial opacity:0 to ensure content is visible */
.fade-up {
    opacity: 1;
    transform: translateY(0px);
}

.fade-in {
    opacity: 1;
}

.slide-left {
    opacity: 1;
    transform: translateX(0px);
}

.slide-right {
    opacity: 1;
    transform: translateX(0px);
}

/* アニメーション用のクラス */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.subpage .split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 0 20px black, 0 0 20px black, 0 0 20px black;
}

.slide-up {
    transform: translateY(100px);
    opacity: 0;
}


/* [END] Animation classes - removed initial opacity:0 to ensure content is visible */


/***********************************/
/************ ▼ SUB ▼ *************/

/* 会社概要テーブル */
.company-info-table {
    max-width: 900px;
    margin: 3rem auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
}

.company-info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.company-info-row:last-child {
    border-bottom: none;
}

.company-info-label {
    background: #d6e5ff70;
    padding: 1.5rem 1.5rem;
    font-weight: bold;
    color: #002680;
    border-right: 1px solid #e0e0e0;
}

.company-info-value {
    padding: 1.5rem 2rem;
    text-align: left;
}

.company-info-map {
    margin-top: 1rem;
}

.company-info-map iframe {
    width: 100%;
}

/* ビジョン・ミッションカード */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 5rem auto;
    max-width: 1000px;
}

.vm-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 6px;
    text-align: center;
    position: relative;
}

#vm-card-vision {
    background: #7c0c58;
}

#vm-card-vision .vm-card-vision-p1 {
    font-size: 1.8rem;
    margin-top: -1rem;
}

#vm-card-mission {
    background: #00296d;
}

div.vm-card:before {
    width: 100%;
    height: 100%;
    content: "";
    background: #c0c0c0;
    top: 0;
    left: 0;
    transform: rotate(5deg);
    position: absolute;
    z-index: -10;
    border-radius: 6px;
}

.vm-card h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-family: "Montserrat", sans-serif;
}

.vm-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: white;
    letter-spacing: 2px;
}

/* ポリシーカード */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto;
}

.policy-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0px 0px 1px 4px rgb(0 38 128);
    text-align: left;
}

.policy-card h4 {
    font-size: 1.5rem;
    color: #002680;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

.policy-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.policy-card .policy-img-wrapper {
    text-align: center;
    width: 100%;
}

.policy-card .policy-img-wrapper .policy-img {
    width: auto;
    max-height: 120px;
    margin-bottom: 1rem;
}

/* 代表メッセージセクション */
.ceo-message-section {
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
    background: white;
    padding: 5rem 2rem;
}

.ceo-message-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.ceo-message-content p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 1.8rem;
    color: #333;
}

.ceo-signature {
    text-align: right;
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #002680;
}

.intro-text {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 2;
    color: #2c3e50;
    margin: 3rem auto;
    max-width: 980px;
    text-align: left;
}

.vision-mission-intro {
    max-width: 900px;
    margin: 2rem auto 3rem;
    text-align: left;
}

.vision-mission-intro p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: #333;
}

.policy-intro {
    max-width: 900px;
    margin: 2rem auto 3rem;
    text-align: left;
}

.policy-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #333;
}

.subpage .sub-english-page-name {
    vertical-align: baseline;
    background: none;
    color: white;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* イントロダクション */
.intro-text {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 2;
    color: #2c3e50;
    margin: 0rem auto 2rem;
    max-width: 980px;
    text-align: left;
}

.intro-description {
    font-size: 1.15rem;
    line-height: 2;
    color: #333;
    margin: 0 auto 0;
    max-width: 980px;
    text-align: left;
}

/* サービスカード */
.service-detail-card {
    display: grid;
    grid-template-columns: calc(45% - 1.5rem) calc(55% - 1.5rem);
    max-width: 1400px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.service-detail-header {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: left;
    background: #333333;
    background-size: cover;
    background-position-x: center;
}

.service-detail-header>div {
    width: 100%;
}

.service-detail-body {
    width: 100%;
    padding: 4rem 0;
}

.service-detail-header h3 {
    font-size: 1.65rem;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

.service-detail-body h3.service-subtitle {
    font-size: 2rem;
    font-weight: bold;
    color: #00296d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-detail-body-inner {
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-body p {
    font-size: 1.15rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1.5rem;
}

.privacy-policy-body h3 {
    margin-bottom: 1.5rem;
}

.privacy-policy-body p {
    font-size: 1.15rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1.5rem;
}

.service-features {
    margin: 2rem 0;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li strong {
    display: block;
    font-size: 1.2rem;
    color: #002680;
    margin-bottom: 0.5rem;
}

.service-features li span {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.service-conclusion {
    background: #d6e5ff;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.service-conclusion p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0;
}

/* ボタングループ */
.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: serif;
    font-weight: 500;
}

.button-primary {
    background-color: #002680;
    color: #ffffff;
    border: 2px solid #002680;
}

.button-primary:hover {
    background-color: #ffffff;
    color: #002680;
    opacity: 1;
}

.button-secondary {
    background-color: #ffffff;
    color: #002680;
    border: 2px solid #002680;
}

.button-secondary:hover {
    background-color: #002680;
    color: #ffffff;
    opacity: 1;
}

/* 背景色のバリエーション */
.service-detail-card.otera366 .service-detail-header {
    background-image: url(images/service-bg-img1e.jpg);
}

.service-detail-card.terapay .service-detail-header {
    background-image: url(images/service-bg-img2e.jpg);
}

.service-detail-card.jumokuso .service-detail-header {
    background-image: url(images/service-bg-img3e.jpg);
}

.service-detail-card.komon .service-detail-header {
    background-image: url(images/service-bg-img4e.jpg);

}

/* その他事業カード */
.advisory-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 4rem auto;
    max-width: 1100px;
    text-align: left;
}

.advisory-card h3 {
    font-size: 2rem;
    color: #002680;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.advisory-card p {
    font-size: 1.15rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1.5rem;
}

.advisory-conclusion {
    font-weight: bold;
    color: #7c0c58;
    font-size: 1.2rem;
}

.service-lineup-title1 {
    font-size: 2.4rem;
}

p.service-badge {
    background: #00296d;
    display: inline-block;
    padding: 0.3rem 1.5rem;
    color: white;
    font-weight: bold;
    border-radius: 25px;
}


.service-detail-body p.recommend_point_type {
    font-family: "Allura", cursive;
    font-weight: 400;
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 0.6;
    background-image: linear-gradient(to bottom, transparent calc(100% - 0.5rem), #d6e5ff 0);
    display: inline-block;
    padding: 0 1rem 0 0.5rem;
    color: #00296d;
}

.service-detail-body p.recommend_point_type:before {
    content: "-";

}

.service-detail-body p.recommend_point_type:after {
    content: "-";

}


#service-more .container {
    margin: 0 auto;
    padding: 0;
    max-width: initial;
}

#service-more .advisory-card {
    background: #eeeeee;
    border-radius: 0;
    padding: 3rem;
    box-shadow: initial;
    margin: 4rem auto;
    max-width: initial;
    text-align: center;
}

.service-link-btn {
    margin-top: 2rem;
}

div#company-message-pic {
    width: 50%;
    max-width: 400px;
    float: left;
    margin-right: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

div#company-message-pic:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #d6e5ff;
    transform: rotate(5deg);
    display: block;
    z-index: -1;
}

div#company-message-pic img {
    border: 12px solid white;
}

.service-badge br {
	display: none;
}

/***********************************/
/***********************************/
/***********************************/
/***********************************/
/***********************************/
/********** ▼ 1680px *125%**********/

@media (max-width: 1680px) {
    /*125%*/

    .seminar-items {
        max-width: auto;
        margin: 0 auto;
    }

    .mission-text {
        font-size: 1.1rem;
    }


    .hero h1.hero-title {
        margin-top: 1.5rem;
        font-size: 3rem;
    }

    .mission-grid {
        grid-template-columns: 36% 60%;
    }

    .section.hero {
        margin-bottom: 0;
        padding: 0;
        margin-top: 7rem;
    }

    .logo img {
        width: 70px;
        top: -2px;
    }

    .slider-content h2 {
        font-size: 1.5rem;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    #app {
        height: 40rem;
    }

    div#company-message-pic {
        width: 40%;
    }
}

/********** ▲ 1680px *125%********************/
/********** ▼ 1480px *********************/

@media (max-width: 1480px) {
    .section.hero {
        margin-top: 5rem;
    }
}

/********** ▲ 1480px *************************/
/********** ▼ 1280px *150%********************/

@media (max-width: 1280px) {

    .header.home-header {
        padding: 1rem 2rem 1rem;
    }

    .footer-title-left img {
        width: 80px;
    }

    .logo img {
        width: 70px;
        top: 0;
    }

    .section {
        padding: 4rem 2rem 2rem;
    }

    #service-more.section {
        padding: 4rem 0 2rem;
    }

    .seminar-items {
        /*max-width: 900px;*/
        margin: 0 auto;
    }

    .hero h1.hero-title {
        margin-top: 1.25rem;
        font-size: 2.5rem;
    }

    .hero-badge {
        padding: 0.4rem 1.5rem;
    }

    .nav {
        max-width: 1080px;
    }


    .service-title {
        font-size: 2rem;
    }

    .service-concept {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 3rem 2rem;
    }

    .gallery-section .slider-container {
        width: calc(100% + 8rem);
        position: relative;
        margin-left: -4rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #app {
        height: 35rem;
    }

    .service-detail-body h3.service-subtitle {
        font-size: 1.8rem;
    }
}

/********** ▲ 1280px *150%*******************/
/********** ▼ 1200px *************************/

@media (max-width: 1200px) {

    .service-card {
        flex: calc(50% - 1.5rem);
        flex-grow: 0;
    }

    .testimonial-card {
        flex: calc(50% - 1.5rem);
        flex-grow: 0;
    }

    .service-detail-header h3 {
        font-size: 1.5rem;
    }
}

/********** ▲ 1200px *************************/
/********** ▼ 980px *************************/

@media (max-width: 980px) {
    .seminar-items {
        max-width: 800px;
        margin: 0 auto;
    }

    #hero-decoration-a {
        top: 48%;
        transform: rotate(6deg);

    }

    #hero-decoration-b {
        top: 48%;
        transform: rotate(-6deg);
    }

    #hero-decoration-c {
        top: 3%;
        transform: rotate(6deg);

    }

    #hero-decoration-d {
        top: 3%;
        transform: rotate(-6deg);
    }

    .section.hero {
        margin-top: 7rem;
    }

    .service-detail-card {
        grid-template-columns: auto;
        gap: 3rem;
    }

    .service-detail-header {
        background-position-y: center;
        border-radius: 1rem;
        height: auto;
        min-height: 40vh;
        /*aspect-ratio: 2 / 1;*/
        width: 100%;
    }

    .service-detail-header .service-link-btn.button-1 {
        display: none;
    }

    .service-detail-body {
        width: 100%;
        padding: 0 0 4rem;
    }

}

/********** ▲ 980px *************************/
/********** ▼ 820px *************************/

@media (max-width: 820px) {

    :root {
        --expo-image-border-radius: 5px;
    }

    .header.home-header {
        background-color: rgba(255, 255, 255, var(--bgOpacity, 1));
        transition: 0.3s ease;
        padding: 1rem 2rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .header {
        padding: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .ceo-message-section {
        padding: 5rem 0;
    }

    #home .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: none;
        gap: 0;
        margin-left: auto;
        margin-top: 3rem;
        margin-right: auto;
    }

    #seminar_information .seminar-bar {
        transform: rotate(0deg);
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* wrapper縦並び */
    .footer-wrapper {
        grid-template-columns: none;
        gap: 2.5rem;
    }

    .hamburger {
        display: inline-block;
    }



    #seminar_information {
        margin-bottom: 2rem;
        padding: 3rem 0rem;
    }



    .mission-grid-img {
        text-align: center;
    }


    .mission-grid-img img {
        width: 60%;
    }

    .section.mission {
        padding: 6rem 0 2rem;
    }

    .testimonials-grid {
        gap: 3rem;
    }

    .gallery-section .slider-container {
        width: calc(100%);
        position: relative;
        margin-left: 0;
    }

    #app {
        height: 24rem;
        margin-top: -3rem;
        margin-bottom: -3rem;
    }

    #mmLogo {

        position: absolute;
        top: 23px;
        left: 25px;
        width: 78px;

    }

    .company-info-row {
        grid-template-columns: 1fr;
    }

    .company-info-label {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

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

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

    .service-detail-header,
    .service-detail-body {
        padding: 2rem 0;
    }

    .advisory-card {
        padding: 2rem;
    }

    .button-group {
        flex-direction: row;
        align-items: center;
    }

    .button-primary,
    .button-secondary {
        width: 46%;
        max-width: 300px;
        padding: 1rem 0.5rem;
    }

    .service-detail-card {
        grid-template-columns: auto;
        gap: 1rem;
        position: relative;
    }
   .subpage .section.hero {
        margin-top: 5rem;
    }

}

/********** ▲ 820px *************************/
/********** ▼ 640px *************************/
@media (max-width: 640px) {

    .service-card {
        flex: none;
        max-width: calc(100% - 2rem);
        width: 480px;
    }

    .testimonial-card {
        flex: none;
        max-width: calc(100% - 2rem);
        width: 480px;
    }

    .footer-title-right {
        font-size: 1.1rem;
    }

    .expo-content {
        padding: 32px;
    }

    p,
    div {
        font-size: 1rem;
    }

    .service-detail-header,
    .service-detail-body {
        padding: 2rem 0;
    }

    div#company-message-pic {
        width: 100%;
        max-width: initial;
        float: initial;
        margin-right: initial;
        margin-bottom: 4rem;
    }

    div#company-message-pic {
        width: 80%;
        margin-left: 10%;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
            gap: 3rem;
    }
}

/********** ▲ 640px *************************/
/********** ▼ 500px *************************/

@media (max-width: 500px) {

    p,
    div,
    .home-parag-under-title,
    .news-date {
        font-size: 1rem;
    }

    .header.home-header {
        padding: 0.5rem 2rem 0.5rem;
    }

    .news-date {
        font-weight: bold;
    }

    .home-parag-under-title {
        margin-bottom: 1rem;
    }

    .pdg_lr0_pc_tablet {
        padding-left: inherit !important;
        padding-right: inherit !important;
    }

    .hero h1.hero-title {
        margin-top: 1.25rem;
        font-size: 1.7rem;
        line-height: 1.5;
        text-shadow: 0 0 2px black;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1.3rem;
    }

    .section-content-img {
        background-image: url(images/header_sp_img1.jpg);

        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .section.hero {
         height: calc(100vh - 2.5rem);
    }

    .logo img {
        width: 50px;
    }

    .section.hero {
        margin-top: 0rem;
    }

    .header {
        padding: 0.5rem 1rem;
        background: #ffffff;
    }

    .section.mission {
        padding: 4rem 0rem 2rem;
    }

    .mission-text {
        font-size: 1rem;
    }


    .mission-text-wrapper {
        margin-top: 2rem;

    }

    .mission-grid {

        margin-top: 2rem;
    }

    .mission-grid-img img {
        width: 80%;
    }

    .section .section-title {
        font-size: 1.45rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
        width: calc(100% + 1rem);
        margin-left: -0.5rem;
    }

    .title_span>img {
        height: 1em;
        top: -5px;
    }

    #latest_news {
        margin-bottom: 0rem;
    }

    .services-grid {
        margin-top: 3rem;
    }

    .title-theme-en {
        font-size: 1.2rem;
    }

    .logo {
        top: -3px;
    }

    span.split-line.subline {
        font-size: 80%;
    }

    .service-card {
        flex: none;

        max-width: calc(100%);
        width: 100%;
    }

    .testimonial-card {
        max-width: calc(100%);
        width: 100%;
    }

    .mm-link {
        font-size: 1.2rem;
        padding: 15px 15px;
    }

    .mm-toggle {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .mm-sublink {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .mm-footer-icons a {
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top::before {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 7px solid #ffffff;
    }

    .back-to-top::after {
        font-size: 8px;
    }

    .section-content {
        top: -3%;
    }

    #hero-decoration-a {
        display: none;
    }

    #hero-decoration-b {
        display: none;
    }

    #hero-decoration-c {
        display: none;
    }

    #hero-decoration-d {
        display: none;
    }

    .footer-wrapper {
        padding: 0;
    }

    .footer-navi-left {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-title-left,
    .footer-title-right {
        min-height: auto;
    }

    .footer-title-left img,
    .footer-title-right img {
        width: 60px;
    }

    .contents-section {
        margin-top: 3rem;
    }

    .subpage .section.hero {
        margin-top: 1rem;
    }

    .hero.sub-page {
        min-height: 250px;
    }

    #home .hero-title {
        font-size: 1.8rem;
        margin-top: 1rem;
    }

    .subpage #home .hero-title {
    margin-top: 0;
            min-width: 100%;
    }

    .company-info-label,
    .company-info-value {
        padding: 1rem 1.5rem;
    }

    .vm-card {
        padding: 2rem 1.5rem;
    }

    .policy-card {
        padding: 2rem 1.5rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .intro-description {
        font-size: 1rem;
    }

.privacy-policy-body p {
    font-size: 1rem;
}

.vision-mission-intro p {
    font-size: 1rem;
    line-height: 1.7;
}

    .service-detail-header {
        aspect-ratio: initial;
        position: relative;
        left: -2rem;
        width: calc(100% + 4rem);
        border-radius: 0;
        min-height: 25vh;
    }

    .service-detail-header h3 {
        font-size: 1.2rem;
    }

    .service-lineup-title1 {
        font-size: 2rem;
    }

    .service-detail-body h3.service-subtitle {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .service-detail-header .service-subtitle {
        font-size: 1.1rem;
    }

    .service-detail-header,
    .service-detail-body {
        padding: 1.5rem 0;

    }

    .advisory-card {
        padding: 1.5rem;
    }

    .advisory-card h3 {
        font-size: 1.6rem;
    }

    .button-group {
        flex-direction: row;
        align-items: center;
    }

    div#company-message-pic {
        width: 100%;
        margin-left: 0%;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .ceo-message-content p,
    .policy-intro p,
    .policy-intro p,
    .service-detail-body p,
    .service-conclusion p {
        font-size: 1rem;
    }

    .service-features li span {
        font-size: 1rem;
    }

    p.service-badge {
        background: #00296d;
        display: inline-block;
        padding: 0.5rem 1.5rem;
        color: white;
        font-weight: bold;
        border-radius: 3rem;
        line-height: 1.5;
        width: 100%;
        text-align: center;
    }

.service-badge br {
	display: block;
}
.company-info-map {
    margin-top: 1rem;
    margin-left: -1.5rem;
    width: calc(100% + 3rem);
}

.hero.sub-page .section-content-img {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
}