/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}


:root {
    /* Colors - Sophisticated Dark Palette */
    --color-primary: #0D0D0D;
    --color-secondary: #2D2D30;
    --color-accent: #B48A36;
    --color-accent-light: #e0c787;
    --color-accent-dark: #a68a4e;
    --color-text: #F0F0F0;
    --color-text-muted: #E2E2E3;
    --color-text-dark: #1a1a2e;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.05);
    --color-surface: #2D2D30;
    --color-surface-light: #22222e;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #B48A36 0%, #e0c787 50%, #B48A36 100%);
    --gradient-dark: linear-gradient(180deg, #0D0D0D 0%, #2D2D30 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(180, 138, 54, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-display: 'Yu Mincho Demibold', '游明朝 Demibold', 'YuMincho', '游明朝', serif;
    --font-body: font-family: 'Yu Gothic Medium', '游ゴシック Medium', 'YuGothic', '游ゴシック体', sans-serif;
    --font-sans: 'Yu Gothic Medium', '游ゴシック Medium', 'YuGothic', '游ゴシック体', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(180, 138, 54, 0.2);

    --header-h-mobile: 72px;
}

body {
    font-family: 'Yu Gothic Medium', '游ゴシック Medium', 'YuGothic', '游ゴシック体', sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-primary);
    overflow-x: hidden;
}



.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

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

/* ============================================================
   LOADER
   ============================================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 1rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.loader-logo img {
    max-width: 200px;
    width: auto;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: var(--color-border);
    overflow: hidden;
}

.loader-bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: loaderBar 1.5s ease-in-out infinite;
}

@keyframes loaderBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   HEADER (汎用クラス: .site-header も使用可能)
   ============================================================ */
.header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-base);
}

.header.scrolled,
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.header.hidden,
.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner,
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo,
.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-image,
.site-logo-image {
  display: inline-block;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.logo-image img,
.site-logo-image img {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* Responsive logo sizing */
@media (max-width: 1024px) {
  .logo-image,
  .site-logo-image {
    max-width: 150px;
  }

  .logo-image img,
  .site-logo-image img {
    max-height: 50px;
  }
}

@media (max-width: 768px) {
  .logo-image,
  .site-logo-image {
    max-width: 120px;
  }

  .logo-image img,
  .site-logo-image img {
    max-height: 40px;
  }
}

.logo-sub,
.site-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.35rem;
  color: var(--color-accent);
  text-transform: uppercase;
}

.nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
}

.nav-link,
.site-nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after,
.site-nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition-fast);
}

.nav-link:hover,
.site-nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.site-nav-link:hover::after {
  width: 100%;
}

.nav-link--cta,
.site-nav-link--cta {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 0;
}

.nav-link--cta::after,
.site-nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover,
.site-nav-link--cta:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1001;


    background: transparent;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
} 

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    background-color: #0D1117;
}

.hero-title {
    font-size: 88px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 3px;
    font-family: 'Yu Mincho Demibold', '游明朝 Demibold', 'YuMincho', '游明朝', serif;
    color: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero-title::before,
.hero-title::after {
    content: "";
    width: 60px;
    height: 1px;
    background-color: #fff;
}

.hero-subtitle {
    font-size: 32px;
    color: #AEB9BF;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-style: italic;
}

.hero-description {
    font-size: 18px;
    color: #F0F0F0;
    line-height: 2;
    max-width: 1000px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0 30px;
    background-color: #0D1117;
}

.about-content {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
}

.section-label {
    font-size: 20px;
    color: #AEB9BF;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.6;
    color: #F0F0F0;
}

.about-text p {
    font-size: 14px;
    color: #ccc;
    line-height: 2;
}

.about-image-area {
    margin-top: 40px;
}

.about-image-area img {
    width: 100%;
    height: auto;
}

.about-image-label {
    display: inline-block;
    font-size: 20px;
    color: #AEB9BF;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.about-image-area .image-placeholder {
    width: 100%;
    height: 300px;
    border: 1px solid #5E7D9B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E7D9B;
    font-size: 14px;
    background-color: rgba(94, 125, 155, 0.1);
}

.about-image {
    flex: 0 0 280px;
}

/* Challenge Cards */
.challenges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.challenge-card {
    border: 1px solid #5E7D9B;
    padding: 24px;
    background: rgba(94, 125, 155, 0.1);
}

.challenge-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #5E7D9B;
    color: #AEB9BF;
}

.challenge-card ul {
    list-style: none;
    padding: 0;
}

.challenge-card li {
    font-size: 12px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
}

.challenge-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5E7D9B;
}

/* Section Title */
.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #F0F0F0;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #0D1117;
}

.services .section-title {
    color: #F0F0F0;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid #5E7D9B;
    width: 100%;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid #5E7D9B;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Yu Gothic Medium', '游ゴシック Medium', 'YuGothic', '游ゴシック体', sans-serif;;
    transition: all 0.3s ease;
    color: #F0F0F0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background-color: rgba(94, 125, 155, 0.2);
}

.tab.active {
    background-color: #5E7D9B;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.service-detail {
    display: flex;
    gap: 60px;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #AEB9BF;
}

.service-info > p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 24px;
    line-height: 2;
}

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

.service-list li {
    font-size: 14px;
    color: #ccc;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.6;
}

.service-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #5E7D9B;
    font-size: 8px;
    top: 0.5em;
}

.image-placeholder {
    width: 100%;
    height: 180px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background-color: #fafafa;
}

/* Cases Section */
.cases {
    padding: 80px 0;
    background-color: #0D1117;
}

.case-studies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background: rgba(94, 125, 155, 0.1);
    border: 1px solid #5E7D9B;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 4px 16px rgba(94, 125, 155, 0.3);
}

.case-image .image-placeholder {
    height: 140px;
    border: none;
    border-bottom: 1px solid #5E7D9B;
}

.case-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #5E7D9B;
}

.case-content {
    padding: 24px;
}

.case-category {
    font-size: 12px;
    color: #5E7D9B;
    margin-bottom: 8px;
}

.case-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #AEB9BF;
}

.case-description {
    font-size: 13px;
    color: #ccc;
    line-height: 1.8;
}

/* Leadership Section */
.leadership {
    padding: 80px 0;
    background-color: #0D1117;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.member-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(94, 125, 155, 0.05);
    border: 1px solid rgba(94, 125, 155, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    border-color: #5E7D9B;
    box-shadow: 0 12px 32px rgba(94, 125, 155, 0.3);
    background: rgba(94, 125, 155, 0.1);
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-photo {
    margin-bottom: 24px;
    position: relative;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    border: 2px solid #5E7D9B;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E7D9B;
    font-size: 13px;
    background-color: rgba(94, 125, 155, 0.1);
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.member-card:hover .photo-placeholder {
    border-color: #B48A36;
    box-shadow: 0 8px 24px rgba(180, 138, 54, 0.3);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.photo-placeholder-text img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
}

.member-card:hover .photo-placeholder img {
    transform: scale(1.05);
}

.photo-placeholder-text {
    color: #5E7D9B;
    font-size: 13px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #F0F0F0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.member-card:hover .member-name {
    color: #B48A36;
}

.member-role {
    font-size: 14px;
    color: #B48A36;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 13px;
    color: #ccc;
    line-height: 1.9;
    text-align: left;
    transition: color 0.3s ease;
}

.member-card:hover .member-bio {
    color: #E2E2E3;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
    position: relative;
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--color-accent);
}

.cta-title { color: var(--color-text); }
.cta-text  { color: var(--color-text-muted); }

.cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition: 0.2s ease;
}

.cta a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-radial);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}


/* ============================================================
   FOOTER (汎用クラス: .site-footer も使用可能)
   ============================================================ */
.footer,
.site-footer {
  background: var(--color-secondary);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-main,
.site-footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-brand,
.site-footer-brand {
  max-width: 350px;
}

.footer-logo,
.site-footer-logo {
  margin-bottom: 1.5rem;
}

/* ✅ 修正：フッターロゴは%指定をやめて固定幅で安定させる */
.footer-logo-image,
.site-footer-logo-image {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 140px;   /* ← 2枚目に寄せたいならこのくらいが安定 */
}

.footer-logo-image img,
.site-footer-logo-image img {
    width: 100%;
    height: auto;
    max-height: 34px;   /* ← ロゴの高さ上限（2枚目の見た目に近い） */
    object-fit: contain;
    display: block;
}


.footer-desc,
.site-footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.footer-social,
.site-footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a,
.site-footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer-social img,
.site-footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.footer-social a:hover,
.site-footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-nav,
.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-nav-title,
.site-footer-nav-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.footer-nav-list,
.site-footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a,
.site-footer-nav-list a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer-nav-list a:hover,
.site-footer-nav-list a:hover {
  color: var(--color-accent);
}

.footer-contact li,
.site-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
}

.footer-contact svg,
.site-footer-contact svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer-bottom,
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-legal,
.site-footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a:hover,
.site-footer-legal a:hover {
  color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        flex: none;
        width: 100%;
    }

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

    .service-detail {
        flex-direction: column;
    }

    .case-studies {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-members {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-inner,
    .site-header-inner {
        padding: 0 clamp(1rem, 4vw, 3rem);
    }

    .nav,
    .site-nav {
        gap: 2rem;
    }

    .nav-link,
    .site-nav-link {
        font-size: 0.75rem;
    }

    .footer-main,
    .site-footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-nav,
    .site-footer-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-logo-image,
    .site-footer-logo-image {
        width: 40%;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    
    .header,
    .site-header {
        padding: 1rem 0;

        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
    }

    .header-inner,
    .site-header-inner {
        padding: 0 1rem;
    }

    .nav,
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);

        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;

        border-top: 1px solid var(--color-border);
    }

    .nav.active,
    .site-nav.active {
        display: flex;
    }

    .nav-link,
    .site-nav-link {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }

    .nav-link--cta,
    .site-nav-link--cta {
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: 100vh;
        padding: calc(var(--header-h-mobile) + 24px) 0 40px;
    }

    .hero-title {
        font-size: 36px;
        flex-direction: column;
        gap: 16px;
    }

    .hero-title::before,
    .hero-title::after {
        width: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.8;
    }

    .about {
        padding: 60px 0 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-label {
        font-size: 16px;
    }

    .about-text h2 {
        font-size: 18px;
    }

    .services {
        padding: 60px 0;
    }

    .cases {
        padding: 60px 0;
    }

    .leadership {
        padding: 60px 0;
    }

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

    .tabs {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        overflow-y: visible;
        width: 100%;
        border: 1px solid #5E7D9B;
        gap: 0;
    }

    .tabs::-webkit-scrollbar {
        height: 6px;
    }

    .tabs::-webkit-scrollbar-track {
        background: transparent;
    }

    .tabs::-webkit-scrollbar-thumb {
        background: #5E7D9B;
        border-radius: 3px;
    }

    .tab {
        flex: 1 1 33.333%;
        padding: 10px 12px;
        font-size: 13px;
        border: none;
        border-right: 1px solid #5E7D9B;
        border-bottom: 1px solid #5E7D9B;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 3個目ごとに右罫線を消す */
    .tab:nth-child(3n) { border-right: none; }

    .tab:last-child {
        border-right: none;
    }

    .case-studies {
        grid-template-columns: 1fr;
    }

    .team-members {
        grid-template-columns: 1fr;
    }

    .footer-main,
    .site-footer-main {
        gap: var(--space-md);
        margin-bottom: var(--space-md);
    }

    .footer-nav,
    .site-footer-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: var(--space-md) 0 var(--space-sm);
    }

    .footer-bottom,
    .site-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal,
    .site-footer-legal {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-legal a,
    .site-footer-legal a {
        display: block;
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .site-header-inner {
        padding: 0 0.75rem;
    }

    .footer {
        padding: var(--space-sm) 0;
    }

    .footer-logo-image,
    .site-footer-logo-image {
    width: auto;      /* ← %指定を潰す */
    max-width: 140px; /* ← 必要なら微調整 */
    }

    .footer-logo-image img,
    .site-footer-logo-image img {
    max-height: 34px; /* ← 必要なら微調整 */
    }

    .footer-nav-list,
    .site-footer-nav-list {
        gap: 0.5rem;
    }

    .footer-nav-list a,
    .site-footer-nav-list a {
        font-size: 0.85rem;
    }

    .footer-bottom,
    .site-footer-bottom {
        font-size: 0.75rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .footer-legal a,
    .site-footer-legal a {
        font-size: 0.75rem;
        line-height: 1.6;
        word-break: break-all;
    }
}





