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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 全ページのリンクスタイル */
a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:visited,
a:active {
    color: inherit;
    text-decoration: none;
}

.area {
    background: #4e54c8;  
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

header {
    background-color: #fff;
    color: #333;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    text-align: left;
    margin: 0;
    font-size: 0.9rem;
    padding: 0;
    border-bottom: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

header h1 a {
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    transition: opacity 0.3s;
}

header h1 a:hover {
    opacity: 0.8;
}

header h1 .h1-images {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: fit-content;
}

header h1 .h1-images img[src="img/logo.png"] {
    height: 40px;
    width: auto;
}

header h1 .h1-images img[src="img/mainlogo.svg"] {
    height: 20px;
    width: auto;
}

header h1 img {
    display: block;
    margin: 0;
}

header h1 img[src="img/logo.png"] {
    width: 120px;
    height: auto;
}

header h1 img[src="img/mainlogo.svg"] {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

nav .nav-item {
    position: relative;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav a.current {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
}

.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    position: relative;
    margin: 80px 0 2rem 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-video::-webkit-media-controls {
    display: none !important;
}

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

.hero-catchphrase {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 2rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

section {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

section p {
    margin-top: 1rem;
    line-height: 1.8;
}

/* 企業向けサービス紹介セクション */
.services-summary {
    padding: 3rem 2rem;
}

.services-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.services-header h2 {
    position: relative;
    z-index: 2;
}

.services-header h2::before {
    content: "about";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.services-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.service-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 400px;
    height: auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    clip-path: inset(0 0 10% 0);
}

.service-icon span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

/* サービスコンテンツアイテム（2カラム：左写真、右テキスト） */
.services-content-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    align-items: center;
}

.services-content-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.services-content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    clip-path: inset(0 0 10% 0);
}

.services-content-text h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-content-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.services-lead {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.services-lead p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    margin-bottom: 1rem;
}

.services-lead p:last-child {
    margin-bottom: 0;
}

/* 選ばれる理由セクション */
.why-choose-us {
    padding: 3rem 2rem;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.why-choose-us h2::before {
    content: "service";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.why-choose-lead {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.why-choose-lead p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.why-choose-content {
    margin-top: 2rem;
}

/* ご利用の流れ */
.usage-flow {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.usage-flow h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

.usage-flow h2::before {
    content: "flow";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.flow-steps {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.flow-content {
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
    width: 100%;
    position: relative;
}

.flow-number {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flow-icon {
    font-size: 6rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

.flow-content h3 {
    font-size: 0.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.flow-arrow {
    font-size: 2rem;
    color: #3498db;
    font-weight: bold;
    margin: 0 0.5rem;
}

.why-choose-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.why-choose-point {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.why-choose-point .point-image {
    width: 100%;
    height: 250px;
    background-color: #95a5a6;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.point-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.point-content h4 {
    font-size: 1rem;
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.point-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* 導入実例スライダー */
.cases-slider {
    padding: 3rem 2rem;
    overflow: visible;
    position: relative;
}

.cases-slider h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cases-slider h2::before {
    content: "case study";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.cases-lead {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.cases-lead p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.slider-container {
    width: 100vw;
    overflow: visible;
    position: relative;
    margin-left: calc(50% - 50vw);
    max-width: 100%;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: slide 20s linear infinite;
    width: fit-content;
}

.slider-card {
    flex: 0 0 350px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #95a5a6;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-tags .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 3 - 2rem * 3));
    }
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: calc(90vh - 100px);
    margin: 100px auto 2rem auto;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10002;
}

.modal-close:hover {
    background-color: #f0f0f0;
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #95a5a6;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-body .card-tags {
    margin-bottom: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.modal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.modal-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.modal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.modal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #555;
}

.modal-body h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

/* 会社概要セクション */
.company {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
}

.company h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

.company h2::before {
    content: "company";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.company-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.company-info,
.company-history {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.company-history {
    padding: 3rem 2rem;
}

.company-info h3,
.company-history h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.info-list {
    display: grid;
    gap: 1rem;
    flex: 1;
}

.info-list dt {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.info-list dd {
    margin: 0 0 1.5rem 0;
    color: #555;
    padding-left: 0;
    line-height: 1.8;
    font-size: 1rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.history-year {
    font-weight: 600;
    color: #3498db;
    min-width: 80px;
    font-size: 1.1rem;
}

.history-content {
    color: #2c3e50;
    flex: 1;
}

.history-image {
    margin: 1.5rem 0;
    text-align: center;
}

.history-image img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

/* 代表メッセージセクション */
.message {
    padding: 3rem 2rem;
}

.message h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.message h2::before {
    content: "message";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.message-lead {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.message-lead p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.message-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin: 2rem 0;
    align-items: start;
}

.message-image {
    width: 100%;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 1.5rem;
}

.message-signature {
    text-align: right;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.message-image {
    width: 100%;
}

.message-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-signature p {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.8;
}

/* 会社情報テーブル */
.company-info {
    padding: 3rem 2rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.company-table th {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    width: 30%;
    vertical-align: top;
}

.company-table td {
    padding: 1rem 1.5rem;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

footer {
    background-color: #2c3e50;
    color: #fff;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-cta {
    background-color: #34495e;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: none;
    padding: 0;
}

.footer-cta p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ecf0f1;
    margin-bottom: 2rem;
}

.footer-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-phone {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #27ae60;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-phone:hover {
    background-color: #229954;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

.btn-contact {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #3498db;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-contact:hover {
    background-color: #2980b9;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.footer-bottom {
    background-color: #2c3e50;
    text-align: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: #fff;
}

footer a {
    color: #fff;
}

footer a:hover,
footer a:visited,
footer a:active {
    color: #fff;
    text-decoration: none;
}

/* スマホ用固定フッター（デスクトップでは非表示） */
.mobile-footer-fixed {
    display: none;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        padding: 1rem;
        position: fixed;
        justify-content: space-between;
    }

    .hamburger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
        padding-top: 60px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 1rem 0;
    }

    nav .nav-item {
        width: 100%;
    }

    nav a {
        padding: 1rem;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    nav a:hover {
        background-color: #f8f9fa;
    }

    header h1 {
        font-size: 0.85rem;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    header h1 img {
        width: 100px;
    }

    .hero {
        margin: 0 0 1rem 0;
    }

    .hero-catchphrase {
        font-size: 1.4rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    main {
        margin: 0 0 1rem 0;
        padding: 50px 1rem 2rem 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .services-summary {
        padding: 2rem 1rem;
    }

    .services-icons {
        gap: 1.5rem;
        flex-direction: column;
    }

    .service-icon {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 250px;
        padding: 1.25rem;
    }

    .services-content-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .services-content-text h3 {
        font-size: 1.3rem;
    }

    .services-content-text p {
        font-size: 0.95rem;
    }

    .services-lead p {
        font-size: 1rem;
    }

    .services-header h2::before {
        font-size: 6rem;
    }

    .why-choose-us {
        padding: 2rem 1rem;
    }

    .why-choose-us h2::before {
        font-size: 6rem;
    }

    .why-choose-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-choose-point {
        padding: 1.5rem;
    }

    .why-choose-point .point-image {
        height: 200px;
    }

    .usage-flow {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .usage-flow h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .usage-flow h2::before {
        font-size: 6rem;
    }

    .flow-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-step {
        max-width: 100%;
        width: 100%;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .cases-slider {
        padding: 2rem 1rem;
    }

    .slider-container {
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .slider-card {
        flex: 0 0 280px;
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 3 - 2rem * 3));
        }
    }

    .cases-slider h2 {
        padding: 0 1rem;
    }

    .cases-slider h2::before {
        font-size: 6rem;
    }

    .cases-lead {
        text-align: left;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem auto;
    }

    .modal-image {
        height: 200px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h3 {
        font-size: 1.3rem;
    }

    .modal-section h4 {
        font-size: 1.1rem;
    }

    .modal-section p {
        font-size: 0.95rem;
    }

    .company {
        padding: 2rem 1rem;
    }

    .company h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .company h2::before {
        font-size: 6rem;
    }

    .company-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-info h3,
    .company-history h3 {
        font-size: 1.3rem;
    }

    .history-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .history-year {
        min-width: auto;
    }

    .message {
        padding: 2rem 1rem;
    }

    .message h2::before {
        font-size: 6rem;
    }

    .message-lead p {
        font-size: 1rem;
    }

    .message-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .message-content {
        margin: 0;
    }

    .message-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* お問い合わせフォーム */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-section h1 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-section > p {
    text-align: center;
    color: #555;
    margin-bottom: 3rem;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-label.required::after {
    content: " ※必須";
    color: #e74c3c;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #2c3e50;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    gap: 2rem;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background-color: #3498db;
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.btn-submit:active {
    transform: translateY(1px);
}

/* よくある質問 */
.faq-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.faq-section h2::before {
    content: "FAQ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(52, 152, 219, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.faq-section h2 {
    position: relative;
    z-index: 2;
}

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

.faq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #3498db;
    font-weight: 600;
}

.faq-question h3,
.faq-question h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #3498db;
    font-weight: bold;
    transition: transform 0.3s;
    margin-left: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 1rem;
    }

    .faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-section h2::before {
        font-size: 6rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

#privacyLinkForm {
    color: #3498db;
    text-decoration: underline;
}

#privacyLinkForm:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .message-signature {
        margin-top: 2rem;
        text-align: center;
    }

    .message-image {
        order: -1;
    }

    .company-info {
        padding: 0rem 0rem;
    }

    .company-history {
        padding: 0rem 0rem;
    }

    .company-table {
        font-size: 0.9rem;
    }

    .company-table th,
    .company-table td {
        padding: 0.75rem 1rem;
    }

    .company-table th {
        width: 35%;
    }

    .footer-cta {
        padding: 2rem 1rem;
    }

    .footer-cta h2 {
        font-size: 1.4rem;
    }

    .footer-cta p {
        font-size: 1rem;
    }

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

    .btn-phone,
    .btn-contact {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* スマホ用固定フッター */
    .mobile-footer-fixed {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .btn-phone-fixed,
    .btn-contact-fixed {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1rem;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: background-color 0.3s, transform 0.2s;
        text-align: center;
    }

    .btn-phone-fixed {
        background-color: #27ae60;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    }

    .btn-phone-fixed:active {
        background-color: #229954;
        transform: scale(0.98);
    }

    .btn-contact-fixed {
        background-color: #3498db;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    }

    .btn-contact-fixed:active {
        background-color: #2980b9;
        transform: scale(0.98);
    }

    /* 固定フッターの下にコンテンツが隠れないようにパディングを追加 */
    body {
        padding-bottom: 70px;
    }
}

