/* CSS Variables & Reset */
:root {
    --color-red: #D20015;
    --color-dark-red: #90000e;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text: #333333;
    --color-gray: #f5f5f5;

    --font-base: 'Noto Sans JP', sans-serif;
    --font-base: 'Zen Old Mincho', serif;
    --font-heading: 'Zen Old Mincho', serif;
    /* Or Noto Serif JP */

    --header-height: 80px;
}

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

html {
    width: 100%;
    /* overflow-x: hidden; */
    scroll-behavior: smooth;
    background-color: #e6e2df;
    background-image: url(../images/footer-bg.webp);
    background-repeat: repeat;
    background-size: 100%;
}

body {
    width: 100%;
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.6;
    /* overflow-x: hidden; */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 80px;
}

/* Typography Utilities */
.text-red {
    color: var(--color-red);
}

.text-white {
    color: var(--color-white);
}

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

.font-bold {
    font-weight: 700;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 70px;
    text-align: center;
}

.section-title .en {
    display: block;
    font-size: 3rem;
    letter-spacing: 0.1em;
    line-height: 1;
}

.section-title .ja {
    display: block;
    font-size: 1rem;
    margin-top: 10px;
    font-family: var(--font-base);
}

/* Header */
header{
	background:url('../images/header-bg2.jpg');
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo-img {
    max-height: 37.5px;
    width: auto;
    object-fit: contain;
    margin: 10px 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    /* or square based on design */
    color: var(--color-red);
    font-weight: bold;
}

.header-icon img {
    transform: scale(0.60);
}

/* Hero Slider */
.hero-slider {
    margin-top: 0;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    position: relative;
    background-color: transparent;
    background-image: url('../images/sl_bg.jpg');
}

.swiper {
    width: 100%;
    height: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.swiper-wrapper {
    background-image: url('../images/sl_bg.jpg');
    background-repeat: repeat;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 黒系オーバーレイが必要なら追加 */
    /* background: rgba(0,0,0,0.2); */
}

/* デザイン再現: 縦書きキャッチコピーなどは配置調整が難しいが、絶対配置で試みる */
.hero-content {
    position: relative;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-catch {
    position: absolute;
    top: 20%;
    right: 10%;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    writing-mode: vertical-rl;
    line-height: 1.5;
    text-shadow: 2px 2px 0 #fff;
    /* 背景に馴染ませるため微調整 */
}

/* Marquee Section */
.marquee-section {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-size: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.marquee-content p {
    display: inline-block;
    margin-right: 2rem;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Information Section */
.section-information {
    background-color: var(--color-red);
    background-image: url('../images/section-bg.webp');
    background-repeat: repeat;
    padding: 80px 0;
    color: var(--color-white);
}

/* Information Section Images */
.section-information .middle-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 7%;
}

.section-information .info-title-img {
    width: 100%;
}


.news-list {
    max-width: 800px;
    margin: 0 auto 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.news-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.news-link {
    display: flex;
    align-items: center;
    padding: 20px 0;
    color: var(--color-white);
    transition: background 0.3s;
}

.news-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.news-date {
    background-color: var(--color-white);
    color: var(--color-red);
    padding: 2px 8px;
    font-size: 0.9rem;
    margin-right: 20px;
    font-family: monospace;
    flex-shrink: 0;
}

.news-title {
    font-size: 1rem;
    font-weight: normal;
}

.more-link-coord {
    text-align: right;
    max-width: 800px;
    margin: 0 auto;
}

.btn-read-more {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

/* About Section */
.section-about {
    background-color: var(--color-red);
    background-image: url('../images/mjbg7.svg');
    background-repeat: repeat;
    background-size: 100%;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.second-bg {
    background-repeat: no-repeat;
    background-size: 100%;
}

.about-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.about-title {
    font-family: var(--font-heading);
    margin-bottom: 40px;
}
.about-title2 {
    margin-bottom: 40px;
    max-width: 30%;
    margin-left: auto;
    margin-right: auto;
}
.about-title img {
    width: 22%;
    height: auto;
    display: block;
    margin: 0 auto;
	max-width:30%;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 100px;
    color: #ffffff;
    font-family: "Zen Old Mincho", serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: left;
    line-height: 2;
}

/* Links Section */
.section-links {
    background-color: var(--color-red);
    padding: 50px 0 100px;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 980px;
}

.link-card {
    display: block;
    text-align: center;
    color: var(--color-white);
    padding: 30px;
    position: relative;
}

.link-card img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.link-card.card-flow img {
    width: 70%;
}



/* Footer */
.site-footer {
    background-color: var(--color-gray);
    padding: 60px 0 20px;
    color: var(--color-text);
    background-image: url('../images/footer-bg.webp');
    background-repeat: repeat;
    background-size: 100%;
}

.footer-container {
    width: 90%;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    align-items: stretch;
}

.footer-logo-img {
    max-width: 160px;
    /* ロゴの幅に合わせて調整してください */
    height: auto;
}


.footer-logo-text-large {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-red);
    display: block;
    line-height: 1;
}

.footer-nav {
    display: flex;
    gap: 40px;
    margin-left: auto;
    width: 45%;
    align-items: center;
}


.footer-link {
    font-weight: bold;
    color: var(--color-red);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-nav .footer-link img {
    vertical-align: middle;
    width: 95%;
    margin: 0 auto;
}


.footer-link .ja {
    font-size: 0.7rem;
    color: #666;
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
}


.contact-highlight {
    max-width: 28%;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.social-icons .icon img {
    width: 25px;
    height: auto;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: bold;
}

.company-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.bg-red {
    background-color: var(--color-red);
    display: inline-block;
    margin-bottom: 2px;
}

.address-info {
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.company-name {
    font-size: 1.8rem;
}

.company-kana {
    font-size: 1.26rem;
}

.phone-highlight {
    text-align: right;
    color: var(--color-red);
    width: 100%;
}

.phone-number {
    font-size: 2rem;
    font-weight: bold;

}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
}

/* Forms (Contact Page) */
.contact-page {
    padding-bottom: 80px;
	margin-top:110px;
}

.privacy-policy {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 20px;
    border-radius: 4px;
    min-height: 200px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.page-contact {}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    color: var(--color-black);
}

.page-title .ja-sub {
    display: block;
    font-size: 1rem;
    color: #666;
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.9rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(210, 0, 21, 0.1);
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label-row label {
    margin-bottom: 0;
}

.form-example {
    font-size: 0.8rem;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    color: #666;
    text-align: right;
}

.required {
    color: var(--color-red);
    margin-left: 5px;
}

.btn-submit {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: var(--color-dark-red);
}

/* Checkbox specific styles */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto !important;
    /* Override form input width: 100% */
    flex-shrink: 0;
    margin-right: 0.5em;
    cursor: pointer;
}

.checkbox-group label {
    display: inline-block !important;
    /* Override form label display: block */
    margin-bottom: 0 !important;
    font-weight: normal;
    cursor: pointer;
}

/* Navigation Overlay (Hamburger) - Global */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: relative;
    margin-left: 30px;
}

.menu-toggle img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.menu-toggle.active img {
    opacity: 0;
}

.menu-toggle.active::before,
.menu-toggle.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s;
}

.menu-toggle.active::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Navigation Overlay */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-red);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.main-navigation.active {
    opacity: 1;
    visibility: visible;
}

.main-navigation ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.main-navigation a {
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: bold;
}

/* Service Page Styles */

.service-header {
    position: -webkit-sticky;
    position: sticky;
    /* サイトヘッダー(80px)の下に配置 */
    top: var(--header-height);
    z-index: 900;
    width: 100%;
    /* コンテンツと区別するためのボーダー（任意） */
    /* border-bottom: 1px solid #eee; */
}
    .pcn {
        display: none;
    }
/* Responsive */
@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        width: 100%;
        padding: 0 20px;
    }

    .footer-top,
    .footer-bottom,
    .company-info {
        gap: 30px;
    }

    .company-info {
        align-items: flex-start;
    }

    .footer-nav {
        width: 60%;
        gap: 15px;
    }

    .hero-catch {
        font-size: 2rem;
        right: 5%;
    }
}

/* Archive Page Styles */
.archive-page {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 120px;
}

/* Archive Page Title */
.archive-page .page-title {
    font-size: 2.5rem;
    color: var(--color-red);
    margin-bottom: 80px;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.archive-page .page-title .ja-sub {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: 15px;
    font-weight: normal;
    letter-spacing: 0.2em;
    font-family: var(--font-base);
}

.news-list-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.archive-news-list {
    border-top: 2px solid var(--color-red);
}

.archive-news-list .news-item {
    border-bottom: 1px solid #eee;
}

.archive-news-list .news-link {
    display: flex;
    align-items: baseline;
    padding: 25px 20px;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
}

.archive-news-list .news-link:hover {
    background-color: #fffafa;
    padding-left: 30px;
}

.archive-news-list .news-date {
    background-color: transparent;
    color: var(--color-red);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

/* Service Page Styles */
.service-page {
    /* padding-top: calc(var(--header-height) + 40px); */
    background-color: #e6e2df;
    /* Assuming texture 
    background-blend-mode: multiply;*/
    background-image: url('../images/footer-bg.webp');
    background-repeat: repeat;
    background-size: 100%;

}

.service-header {
    text-align: center;
    padding-bottom: 10px;
}

.service-header {
    position: -webkit-sticky;
    position: sticky;
    /* サイトヘッダー(80px)の下に配置 */
    top: var(--header-height);
    z-index: 900;
    width: 100%;
    /* コンテンツと区別するためのボーダー（任意） */
    /* border-bottom: 1px solid #eee; */
    transition: transform 0.3s ease;
}

.service-header-hidden {
    transform: translateY(-200%);
    pointer-events: none;
}

.service-page .page-title {
    font-size: 4rem;
    color: var(--color-red);
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
}

.service-page .page-title .ja-sub {
    display: block;
    font-size: 1rem;
    color: var(--color-red);
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
    font-family: var(--font-base);
}

.service-section {
    padding: 30px 0;
}

.section-heading,
.service-heading {
    text-align: center;
    color: var(--color-red);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* CONCEPT size */
    margin-bottom: 100px;
    font-weight: bold;
}

.section-heading .ja-sub {
    display: block;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: normal;
}

/* Concept Section */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17%;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.concept-left {
    text-align: center;
}

.concept-logo {
    width: 70%;
    margin: 0 auto;
}

.concept-logo-text {
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.logo-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin: 60px 0;
    padding: 10px 0;
    background-color: #FFF;
    text-align: center;
}

.logo-desc {
    font-family: monospace;
    line-height: 1.8;
    color: #666;
    font-size: 0.9rem;
}

.concept-right {}

.concept-catch {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
}

.red-text {
    color: var(--color-red);
    font-family: var(--font-heading);
    font-size: 2.5em;
    font-weight: bold;
}

.n-text {
    color: var(--color-black);
    font-family: var(--font-heading);
    font-size: 1.65em;
    font-weight: bold;
}

.bg-red-text {
    background-color: var(--color-red);
    color: #fff;
    padding: 2px 10px;
    display: inline-block;
}

.concept-text {
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    display: inline-block;
}

.concept-desc {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 2;
    text-align: justify;
    width: 95%;
    margin: 0 auto;
    padding: 10px;
}

/* Philosophy Section */
.section-philosophy {
    text-align: center;
}

.philosophy-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    display: inline-block;
}

.philosophy-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.red-bar {
    display: inline-block;
    width: 110px;
    height: 30px;
    background-color: var(--color-red);
    margin-right: 30px;
    margin-bottom: 10px;
    transform: skewX(1deg);
    transform: skewY(-10deg);
}

h2.philosophy {
    width: 25%;
    margin: 90px auto;
}

.philosophy-text h3 {
    font-family: var(--font-heading);
    color: var(--color-red);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: 0.2rem;
    font-size: 2.8em;
}

.philosophy-text p {
    font-size: 1.3rem;
    color: #000;
    font-weight: bold;
}

.philosophy-slogan .slogan-ja {
    font-size: 3rem;
    color: var(--color-red);
    margin-bottom: 5px;
}

.slogan-ja {
    font-size: 2rem;
    font-weight: bold;
}

.philosophy-slogan .slogan-en {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: var(--color-red);
    line-height: 1;
    margin-bottom: 10px;
}

.slogan-en img {
    width: 50%;
    margin: 40px auto 0 auto;
}

.philosophy-slogan .slogan-sub {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--color-red);
    margin-top: -20px;
}

/* Tools Section */
h2.tool {
    width: 15%;
    margin: 90px auto;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    justify-content: center;
}

.tool-item2 {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    justify-content: center;
}

.tool-item.tool-reverse {
    flex-direction: row-reverse;
}

.tool-content {
    width: 37%;
    max-width: 400px;
}

.tool-image-wrapper {
    width: 50%;
    position: relative;
}

.tool-header {
    display: flex;
    align-items: baseline;
    color: #fff;
    margin-bottom: 40px;
	gap:25px;
}

.tool-label {
    font-size: 5.5rem;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 2px #ccc;
    font-weight: bold;
}

.tool-number {
    font-size: 7.5rem;
    color: var(--color-red);
    font-family: var(--font-heading);
    font-weight: bold;
    line-height: 1;
}

.tool-title {
    color: var(--color-red);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    display: inline-block;
}

.tool-desc {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: bold;
}

/* Flow Section */
.section-flow {
    text-align: center;
}

h2.flow {
    width: 23%;
    margin: 90px auto;
}

.flow-img {
    width: 100%;
}

.flow-img {
    width: 90%;
    margin: 0 auto;
}

.flow-note {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--color-red);
}

.service-bottom-spacer {
    height: 100px;
}

/* company section */
h2.company {
    width: 18%;
    margin: 90px auto;
}

.table-outer {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

table#c-table {
    font-weight: bold;
	margin-bottom:150px;
}

table#c-table th {
    font-weight: bold;
    text-align: right;
    padding: 20px;
    font-size: 1.1em;
}

table#c-table td {
    font-weight: bold;
    text-align: left;
    padding: 20px;
    font-size: 1.3em;
}

.section-concept .section-heading img {
    width: 20%;
}

.totop {
    display: flex;
    justify-content: center;
    padding-bottom: 150px;
    margin-top: 0px;
}
.totop2 {
    display: flex;
    justify-content: center;
    padding-bottom: 150px;
    margin-top: 80px;
}
.totop img {
    width: 90px;
}
.totop2 img {
    width: 90px;
}
/*Contact page */
.contact-t{
	display:flex;
	align-items:center;
	justify-content:center;
}
.contact-t img{
	width:20%;
}
article header{
	background:none;
}

/* Responsive Service */
@media (max-width: 768px) {
    .service-page .page-title {
        font-size: 2.5rem;
    }
    .section-about {
        background: url(../images/mid-bg3.webp) no-repeat;
		background-size:100%;
    }
    .concept-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: flex-start;
        max-width: 800px;
        margin: 0 auto;
    }

    .logo-title {
        font-weight: bold;
        margin-bottom: 15px;
        font-family: var(--font-heading);
        font-size: 1.8em;
        margin: 60px 0;
        padding: 10px 0;
        background-color: #FFF;
        text-align: center;
    }

    h2.philosophy {
        width: 40%;
        margin: 80px auto;
    }

    .slogan-en img {
        width: 70%;
        margin: 40px auto 0 auto;
    }

    .concept-right {
        text-align: left;
        padding-top: 0;
    }

    h2.tool {
        width: 30%;
        margin: 40px auto;
    }

    .tool-item,
    .tool-item.tool-reverse {
        gap: 30px;
    }

    .tool-content,
    .tool-image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    h2.flow {
        width: 40%;
        margin: 0px auto 80px auto;
    }

    h2.company {
        width: 35%;
        margin: 20px auto 40px auto;
    }
}

@media (max-width: 478px) {
	.about-title img {
		width: 60%;
		height: auto;
		margin: 0 auto;
	}
	.about-title2 {
		margin-bottom: 40px;
		max-width: 70%;
		margin-left: auto;
		margin-right: auto;
	}
	    .section-about {
        background: url(../images/sp-img2.webp) no-repeat;
		background-size:100%;
    }

	.section-concept .section-heading img {
		width: 15%;
	}
	.section-information .middle-logo {
		width: 20%;
	}
	.flow-img{
		margin: 0 auto 60px auto;
	}
	.service-section {
		padding: 0; 
	}
	.concept-grid {
        display: block;
    }

    h2.philosophy {
        width: 50%;
        margin: 90px auto;
    }

    .section-concept .section-heading img {
        width: 50%;
    }

    .concept-left {
        margin-bottom: 80px;
    }

    .logo-title {
        font-size: 1.8em;
        margin: 60px auto 30px 0;
    }

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

    h2.philosophy {
        width: 65%;
    }

    .red-bar {
        display: inline-block;
        width: 60px;
        height: 20px;
        background-color: var(--color-red);
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .philosophy-text h3 {
        font-family: var(--font-heading);
        color: var(--color-red);
        line-height: 1;
        margin-bottom: 5px;
        letter-spacing: 0rem;
        font-size: 1.2em;
    }

    .philosophy-text p {
        font-size: 0.9rem;
        color: #000;
        font-weight: bold;
    }

    .philosophy-slogan .slogan-ja {
        font-size: 1.6rem;
        color: var(--color-red);
        margin-bottom: 5px;
    }

    .slogan-en img {
        width: 80%;
        margin: 40px auto 0 auto;
    }

    .philosophy-slogan .slogan-sub {
        font-size: 1.4rem;
        font-weight: bold;
        color: var(--color-red);
        margin-top: -20px;
    }

    .tool-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        margin-bottom: 100px;
        justify-content: center;
    }

    .tool-item2 {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 60px;
        margin-bottom: 100px;
        justify-content: center;
    }
    h2.flow {
        width: 40%;
        margin: 0px auto 60px auto;
    }
	.table-outer {
		margin-bottom: 60px;
	}
	table#c-table{
		margin-bottom:80px;
	}
    table#c-table th {
        font-size: 1em;
        padding: 5px;
        white-space: nowrap;
        vertical-align: top;
    }

    table#c-table td {
        font-weight: bold;
        text-align: left;
        padding: 5px;
        font-size: 0.9em;
    }
	.contact-form-wrapper {
		padding: 0px;
		border-radius: 8px;
		max-width: 1200px;
		margin: 0 auto;
	}

	.tool-label {
		font-size:4rem;
		font-family: var(--font-heading);
		color: #fff;
		text-shadow: 0 0 2px #ccc;
		font-weight: bold;
	}
	.tool-number {
		font-size: 6rem;
		color: var(--color-red);
		font-family: var(--font-heading);
		font-weight: bold;
		line-height: 1;
	}
	.container {
		margin: 0 auto;
		padding: 0 20px;
	}
	.archive-page {
		padding-top: calc(var(--header-height) + 100px);
		padding-bottom: 120px;
	}
    .totop {
        display: flex;
        justify-content: center;
        padding-bottom: 40px;
    }
	.footer-top {
		display: flex;
		margin-bottom: 20px;
		align-items: stretch;
		flex-direction: column;
		gap: 40px;
	}
	.footer-nav {
		width: 100%;
		gap: 15px;
	}
	.footer-logo-img {
		max-width: 120px;
		height: auto;
		margin: 0 auto;
	}
	.footer-bottom {
		flex-direction: column;
	}
	.tagline {
		font-size: 1rem;
	}
	.company-name {
		font-size: 1.2rem;
	}
	.company-kana {
		font-size: 0.8rem;
	}
	p.address{
		font-size:0.8em;
	}
	.contact-highlight {
		max-width: 100%;
		display: flex;
		gap: 30px;
	}
	.social-icons .icon img {
		width: 40px;
		height: auto;
	}
    .spn {
        display: none;
    }
    .pcn {
        display: block;
    }
	.flow-sp-btn{
		background:#e50012;
		display:inline-block;
		color:#FFF;
		font-weight:bold;
		padding:10px 20px;
	}
	.contact-page {
		padding-bottom: 80px;
		margin-top:40px;
	}
	.totop2 {
		padding-bottom: 0px;
	}
}

/* Flow Page Styles */
.flow-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
}

.flow-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-red);
    line-height: 1;
    margin-right: 30px;
    font-family: var(--font-heading);
    opacity: 0.2;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark-red);
    font-family: var(--font-heading);
    border-bottom: 2px solid var(--color-gray);
    padding-bottom: 10px;
}

.step-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.flow-arrow {
    text-align: center;
    height: 60px;
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--color-red);
    opacity: 0.3;
}

.flow-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-red);
    border-bottom: 2px solid var(--color-red);
    z-index: 3;
}

.contact-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.btn-contact {
    display: inline-block;
    background-color: var(--color-red);
    color: #fff;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-contact:hover {
    background-color: var(--color-dark-red);
    transform: translateY(-3px);
}


.social-share {
    margin: 60px 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

.share-title {
    display: block;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-share:hover {
    transform: translateY(-3px);
}

.share-twitter {
    background-color: #000;
    /* X brand color */
}

.share-facebook {
    background-color: #1877f2;
}

.share-line {
    background-color: #06c755;
}

.btn-share svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}



@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .flow-wrapper {
        padding: 0 20px;
    }
}

.archive-news-list .news-date {
    font-size: 1rem;
    margin-right: 40px;
    flex-shrink: 0;
    min-width: 100px;
}

.archive-news-list .news-title {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

/* Arrow Icon on Hover */
.archive-news-list .news-link::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-red);
    border-right: 2px solid var(--color-red);
    opacity: 0;
    transition: all 0.3s;
}

.archive-news-list .news-link:hover::after {
    opacity: 1;
    right: 15px;
}

@media (max-width: 768px) {
    .archive-news-list .news-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 10px;
    }

    .archive-news-list .news-date {
        margin-bottom: 8px;
    }

    .archive-news-list .news-link:hover {
        padding-left: 10px;
    }

    .archive-news-list .news-link::after {
        display: none;
    }
}

/* Pagination */
.pagination {
    margin-top: 80px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: var(--color-text);
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

/* Single Post Styles */
.single-page {
    padding-top: calc(var(--header-height) + 100px);
    padding-bottom: 120px;
}

.single-post-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.single-article .entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-article .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}

.single-article .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.single-article .post-date {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: var(--color-red);
}

.single-article .post-cat a {
    background: #f5f5f5;
    color: #555;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.single-article .post-cat a:hover {
    background: var(--color-red);
    color: var(--color-white);
    opacity: 1;
}

.single-article .post-thumbnail {
    margin-bottom: 50px;
}

.single-article .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-article .entry-content {
    font-size: 1.05rem;
    line-height: 2.2;
}

.single-article .entry-content h2,
.single-article .entry-content h3 {
    margin-top: 3em;
    margin-bottom: 1.2em;
    line-height: 1.4;
    font-weight: 700;
}

.single-article .entry-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-red);
    padding-bottom: 0.5em;
}

.single-article .entry-content h3 {
    font-size: 1.5rem;
    border-left: 5px solid var(--color-red);
    padding-left: 0.8em;
}

.single-article .entry-content p {
    margin-bottom: 2em;
}

/* Post Navigation */
.post-navigation-wrapper {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.post-navigation a {
    display: block;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
    flex: 1;
}

.post-navigation a:hover {
    border-color: var(--color-red);
    background: #fffafa;
    opacity: 1;
}

.post-navigation .nav-subtitle {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.post-navigation .nav-title {
    font-weight: bold;
    color: var(--color-text);
}

/* Service Page Image Centering */
.service-page .page-title img,
.service-page .section-heading img {
    display: block;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    /* Ensure it's above everything including header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Response handling for modal image */
@media screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}
/* Slider Responsive */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide-bg.is-pc {
    display: block;
}

.slide-bg.is-sp {
    display: none;
}

@media (max-width: 768px) {
    .slide-bg.is-pc {
        display: none;
    }

    .slide-bg.is-sp {
        display: block;
    }
}
