:root {
    --main-color: #168a90;
    --accent-color: #5A7D8B;
    --hover-color: #116A75;
    --bg-color: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* ホバー時のエフェクトなど */
.logo img:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link:hover {
    color: var(--main-color);
}

.nav-menu li a {
    letter-spacing: 0.15em;
}

.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--main-color);
    margin: 1rem auto 2rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-icon {
    background-color: rgba(23, 180, 187, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--main-color);
    font-size: 2rem;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-body {
    flex-grow: 1;
}

.testimonial-card {
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-left: 4px solid var(--main-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 500;
}

.testimonial-company {
    color: #666;
    font-size: 0.9rem;
}

.rating {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #555;
}

.cta {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    margin-bottom: 2rem;
}

.btn-white {
    background-color: white;
    color: var(--main-color);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.footer {
    background-color: #333;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
    margin-bottom: 2rem;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: white;
}

.social-list {
    display: flex;
    list-style: none;
    margin-bottom: 2rem;
}

.social-list li {
    margin-right: 1rem;
}

.social-list a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-list a:hover {
    color: var(--main-color);
}

.copyright {
    text-align: center;
    color: #ccc;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--main-color);
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* responsive design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hero {
        padding-top: 7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Custom grid system based on Flexbox */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
}

.grid-cols-1 > * {
    width: 100%;
    padding: 1rem;
}

.grid-cols-2 > * {
    width: 50%;
    padding: 1rem;
}

.grid-cols-3 > * {
    width: 33.333%;
    padding: 1rem;
}

@media (max-width: 768px) {
    .grid-cols-2 > *, .grid-cols-3 > * {
        width: 100%;
    }
}

/*スクロール（フェードイン）用*/
.scroll-space {
    box-sizing: border-box;
    padding-top: 300px;
    height: 1600px;
    color: #fff;
    overflow: hidden;
  }

  .fadein {
    opacity: 0;
    transform: translate(0,0);
    transition: all 1.5s;
  }
  .fadein.fadein-left {
    transform: translate(-30px,0);
  }
  .fadein.fadein-right {
    transform: translate(30px,0);
  }
  .fadein.fadein-up {
    transform: translate(0,-30px);
  }
  .fadein.fadein-bottom {
    transform: translate(0,30px);
  }
  .fadein.scrollin {
    opacity: 1 !important;
    transform: translate(0,0) !important;
  }

/* Hero Badge */
.hero-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--main-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Particles Animation */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Solutions Tabs */
.solutions-tabs {
    position: relative;
    margin-top: 2rem;
}

.tab-selector {
    display: none;
}

.tab-label {
    display: inline-block;
    padding: 1rem 2rem;
    margin-right: 0.5rem;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-selector:checked + .tab-label {
    background: var(--main-color);
    color: white;
}

.tab-content {
    display: none;
    padding: 2rem 0;
}

.tab-selector:checked ~ .tab-content {
    display: flex;
    gap: 2rem;
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--main-color);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--main-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Steps Timeline */
.steps-timeline {
    position: relative;
    padding: 2rem 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--main-color);
    transform: translateX(-50%);
}

.step {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
}

/* Form Styles */
.cta-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--main-color);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.8rem;
    background: white;
    padding: 0 0.5rem;
}

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

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background: var(--hover-color);
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.site-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* ダークモード用のロゴ */
.dark-mode .site-logo {
    content: url('../images/logo/logo-white.png');
}

/* =========================
   Header Navigation Layout
   ========================= */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 32px;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-logo {
  max-height: 48px;
  width: auto;
  height: auto;
}

.nav-menu-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

.nav-menu li {
  display: flex;
  align-items: center;
}

.header-btn {
  margin-left: 32px;
  padding: 10px 28px;
  background: #67bfc3;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  font-size: 1rem;
  border: none;
}

.header-btn:hover {
  background: #4da6a9;
}

.hamburger {
  display: none;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 12px;
  }
  .nav-menu {
    gap: 16px;
  }
  .header-btn {
    margin-left: 16px;
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .nav-menu-wrap,
  .header-btn {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .hamburger span {
    display: block;
    height: 4px;
    margin: 5px 0;
    background: #67bfc3;
    border-radius: 2px;
  }
}
