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

:root {
    --primary: #00B5A5;
    --primary-dark: #008A7F;
    --primary-light: #33C5B8;
    --black: #000000;
    --white: #FFFFFF;
    --gray-100: #F7F7F7;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid System */
.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Typography */
.display-1 {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.display-2 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.heading-1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.heading-3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.body-large {
    font-size: 18px;
    line-height: 1.6;
}

.body-regular {
    font-size: 16px;
    line-height: 1.5;
}

.caption {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    z-index: 1000;
}

.header-content {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
}
/* Ensure image logos match text size */
.logo img {
    height: 2.5em; /* equals .logo font-size (24px) */
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 32px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--black);
    border-radius: 0;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: none;
}

.hero .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-size: 18px;
    padding: 16px 48px;
}

.hero .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
    transform: none;
}

.favorite-btn {
    font-size: 1em;
    transition: color 0.2s ease;
}

.favorite-btn:hover {
    font-size: 1em;
}

/* Hero */
.hero {
    margin-top: 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 181, 165, 0.4) 0%, rgba(0, 138, 127, 0.5) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    width: 32px;
    border-radius: 6px;
    background: var(--white);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3;
}

.carousel-control {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s;
    opacity: 0.7;
    z-index: 3;
}

.carousel-control:hover {
    opacity: 1;
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 2;
}

.hero-title .accent {
    color: var(--primary-light);
}

.hero-subtitle {
    color: var(--white);
    margin-bottom: 48px;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Fallback geometric shape when no image */
.geometric-shape {
    width: 400px;
    height: 400px;
    position: relative;
}

.shape-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--black);
    transform: rotate(45deg);
}

.shape-2 {
    position: absolute;
    width: 70%;
    height: 70%;
    background: var(--primary);
    top: 15%;
    left: 15%;
}

.shape-3 {
    position: absolute;
    width: 40%;
    height: 40%;
    border: 2px solid var(--black);
    background: var(--white);
    top: 30%;
    left: 30%;
    transform: rotate(45deg);
}

/* Intro Video Section */
.video-section {
    padding: 96px 0;
    background: var(--gray-100);
}

.video-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

.video-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 32px;
    max-width: 720px;
}

.video-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.06em;
}

.video-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    letter-spacing: 0.04em;
}

.video-frame {
    position: relative;
    padding-top: 56.25%;
    border: 2px solid var(--black);
    background: var(--gray-900);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-link {
    margin-top: 20px;
    text-align: left;
}

.video-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.video-link a:hover {
    color: var(--primary-dark);
    border-bottom-color: currentColor;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.testimonials-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.testimonials-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
    max-width: 720px;
}

.testimonials-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
}

.testimonials-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.testimonials-description {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 640px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.testimonial-card {
    background: var(--white);
    border-radius: 0;
    border: 2px solid var(--black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: all 0.3s;
    color: var(--black);
    text-decoration: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.testimonial-meta {
    background: var(--white);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--black);
}

.testimonial-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--gray-100);
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.testimonial-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.testimonial-quote {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--black);
}

.testimonial-text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.9;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.news-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.news-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
}

.news-view-all {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.news-view-all:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.news-view-all::after {
    content: '→';
    font-size: 18px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
    background: var(--gray-100);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--black);
}

.news-item:hover {
    background: var(--gray-200);
    transform: translateX(8px);
}

.news-item-link {
    display: block;
    /* 全体をクリック可能に */
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 文字色は継承 */
}

.news-item-link:hover .news-item {
    background: #f5f5f5;
    /* ホバー時に背景を変える */
    cursor: pointer;
    /* マウスカーソルを指アイコンに */
}

.news-date {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    min-width: 100px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
    text-align: center;
}

.news-category.update {
    background: var(--primary);
}

.news-category.event {
    background: var(--primary-dark);
}

.news-category.release {
    background: var(--black);
}

.news-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

/* Search Section */
.search-section {
    padding: 120px 0;
    background: var(--gray-100);
}

.search-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.search-title {
    grid-column: span 12;
    margin-bottom: 48px;
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
}

/* Project Cards */
.projects-grid {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.project-card {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--black);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.project-badge.new {
    background: var(--primary);
}

.project-badge.urgent {
    background: #FF5E5B;
}

.project-badge.popular {
    background: var(--primary-dark);
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-company {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.project-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.project-detail-label {
    font-weight: 600;
    min-width: 60px;
}

.project-budget {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.project-date {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 12px;
    color: var(--gray-500);
}

.search-form {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    background: var(--white);
    padding: 48px;
    border: 2px solid var(--black);
}

.form-group {
    grid-column: span 4;
}

.search-form--top .form-group {
    grid-column: span 6;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--black);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-button {
    grid-column: span 12;
    justify-self: center;
    margin-top: 24px;
}

/* Features */
.features {
    padding: 120px 0;
}

.features-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
}

.features-title {
    grid-column: span 12;
    margin-bottom: 48px;
}

.feature-card {
    grid-column: span 4;
    padding: 48px;
    border: 2px solid var(--black);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 var(--black);
}

.feature-number {
    position: absolute;
    top: -20px;
    left: 24px;
    background: var(--white);
    padding: 0 12px;
    font-weight: 900;
    font-size: 48px;
    color: var(--primary);
}

.feature-title {
    margin-top: 24px;
    margin-bottom: 16px;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Statistics */
.statistics {
    padding: 120px 0;
    background: var(--black);
    color: var(--white);
}

.statistics-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.stat-item {
    grid-column: span 3;
    text-align: center;
    padding: 48px 0;
    border-right: 1px solid var(--gray-700);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

/* Process */
.process {
    padding: 120px 0;
    background: var(--gray-100);
}

.process-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.process-title {
    grid-column: span 12;
    margin-bottom: 80px;
}

.process-timeline {
    grid-column: span 12;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--black);
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.timeline-item {
    position: relative;
    padding-top: 80px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
}

.timeline-content {
    background: var(--white);
    padding: 32px;
    border: 2px solid var(--black);
}

.timeline-step {
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

/* Events Section */
.events-section {
    padding: 100px 0;
    background: var(--white);
}

.events-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.events-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
}

.events-view-all {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.events-view-all:hover {
    background: var(--primary);
    color: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.event-card {
    background: var(--gray-100);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.event-image {
    width: 100%;
    height: 200px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    position: relative;
    z-index: 0;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image-placeholder {
    font-size: 48px;
    color: var(--white);
}

.event-type {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.event-type.seminar {
    background: var(--primary-dark);
}

.event-type.exhibition {
    background: #FF5E5B;
}

.event-type.workshop {
    background: var(--primary);
}

.event-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date-location {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

.event-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--primary);
}

.event-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-organizer {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.event-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}

.event-capacity {
    font-size: 14px;
    color: var(--gray-600);
}

.event-capacity strong {
    color: var(--primary);
    font-weight: 700;
}

.event-status {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-status.recruitment {        /* 募集中 */
  background: #E6FFF9;  color: #007A6F;  border-color: #7DE3D7;
}
.event-status.few, 
.event-status.limited {            /* 残りわずか */
  background: #FFF4E6;  color: #A85B00;  border-color: #FFC486;
}
.event-status.full, 
.event-status.closed {             /* 満席・終了 */
  background: #EEE;     color: #666;      border-color: #CCC;
}
.event-status.soon, 
.event-status.upcoming {           /* 受付前（例） */
  background: #E8F1FF;  color: #0F4AA8;  border-color: #A6C3FF;
}

.event-featured {
    position: absolute;
    top: 12px;
    right: -40px;
    /* リボンの幅に合わせて調整 */
    background: #FF5E5B;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 50px;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
    background: var(--gray-100);
}

.blog-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
}

.blog-view-all {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.blog-view-all:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.blog-view-all::after {
    content: '→';
    font-size: 18px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border: 2px solid var(--black);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-thumbnail {
    width: 100%;
    height: 240px;
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 64px;
}

.blog-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-category-badge.industry {
    background: var(--primary);
}

.blog-category-badge.technology {
    background: var(--primary-dark);
}

.blog-category-badge.case-study {
    background: var(--black);
}

.blog-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.blog-date {
    color: var(--gray-500);
}

.blog-post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-tag {
    padding: 4px 8px;
    background: var(--gray-100);
    font-size: 12px;
    color: var(--gray-600);
    border-radius: 4px;
}

.blog-read-time {
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CTA */
.cta {
    padding: 120px 0;
    background: var(--primary);
    color: var(--white);
}

.cta-content {
    grid-column: 1 / -1;
    text-align: center;
}

.cta-title {
    margin-bottom: 24px;
}

.cta-subtitle {
    margin-bottom: 48px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn-cta:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Q&A Section */
.qa-section {
    padding: 100px 0;
    background: var(--white);
}

.qa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.qa-header {
    text-align: center;
    margin-bottom: 60px;
}

.qa-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}

.qa-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.qa-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.qa-btn {
    padding: 12px 32px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid var(--black);
    transition: all 0.3s;
    cursor: pointer;
}

.qa-btn-ask {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.qa-btn-ask:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.qa-btn-all {
    background: transparent;
    color: var(--black);
}

.qa-btn-all:hover {
    background: var(--black);
    color: var(--white);
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qa-item {
    background: var(--gray-100);
    border: 2px solid var(--black);
    padding: 32px;
    transition: all 0.3s;
}

.qa-item:hover {
    transform: translateX(8px);
    box-shadow: 8px 8px 0 var(--black);
}

.qa-question-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.qa-status {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

.qa-status.solved {
    background: var(--primary);
}

.qa-status.unsolved {
    background: var(--gray-500);
}

.qa-status.hot {
    background: #FF5E5B;
}

.qa-question-content {
    flex: 1;
}

.qa-question-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
    text-decoration: none;
    display: block;
}

.qa-question-title:hover {
    color: var(--primary);
}

.qa-question-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.qa-question-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--gray-600);
}

.qa-asker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.qa-category {
    padding: 4px 8px;
    background: var(--gray-200);
    font-size: 12px;
    color: var(--gray-700);
    border-radius: 4px;
}

.qa-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.qa-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--gray-600);
}

.qa-stat strong {
    color: var(--black);
    font-weight: 700;
}

.qa-answer-preview {
    margin-top: 24px;
    padding: 20px;
    background: var(--white);
    border-left: 4px solid var(--primary);
}

.qa-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.qa-answerer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
}

.qa-best-answer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.qa-answer-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

.qa-view-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.qa-view-more:hover {
    color: var(--primary-dark);
}
.qa-status.solved  { background: #00B894; color:#fff; }
.qa-status.unsolved{ background: #636e72; color:#fff; }
.qa-status.closed  { background: #b2bec3; color:#2d3436; }
/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--black);
    color: var(--white);
}

.footer-content {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    grid-column: span 4;
}

.footer-logo {
    font-weight: 900;
    font-size: 32px;
    margin-bottom: 24px;
}

.footer-logo span {
    color: var(--primary);
}
/* Ensure footer image logo matches text size */
.footer-logo img {
    height: 2.5em; /* equals .footer-logo font-size (32px) */
    width: auto;
    display: block;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-column {
    grid-column: span 2;
}

.footer-title {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 40px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--gray-500);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .testimonials-container {
        padding: 0 32px;
        gap: 40px;
    }

    .testimonials-title {
        font-size: 40px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .testimonial-meta,
    .testimonial-body {
        padding: 28px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-date {
        min-width: auto;
    }

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

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

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

    .swiss-grid {
        padding: 0 24px;
    }

    .display-1 {
        font-size: 64px;
    }

    .display-2 {
        font-size: 48px;
    }

    .hero-text {
        grid-column: span 12;
    }

    .hero-visual {
        display: none;
    }

    .feature-card {
        grid-column: span 6;
    }

    .stat-item {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
    }

    .testimonials-container {
        padding: 0 24px;
        gap: 32px;
    }

    .nav {
        grid-column: span 12;
        order: 2;
        margin-top: 20px;
    }

    .form-group {
        grid-column: span 12;
    }

    .feature-card {
        grid-column: span 12;
    }

    .testimonials-title {
        font-size: 32px;
    }

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

    .testimonial-meta,
    .testimonial-body {
        padding: 24px;
    }

    .timeline-items {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-column {
        grid-column: span 12;
    }
}

/* === search.php 用の上書き === */
.page-search .hero.hero--compact {
    min-height: auto;
    margin-top: 80px;
    /* 固定ヘッダー分 */
    background: none;
}

.page-search .hero.hero--compact .hero-content {
    min-height: auto;
    padding: 32px 0;
}

.page-search .hero.hero--compact .hero-text {
    padding: 24px 0;
}

.page-search .hero.hero--compact .display-2,
.page-search .hero.hero--compact .heading-2 {
    font-size: 32px;
    line-height: 1.2;
}

/* 検索フォームを上に（ページでは余白を縮小） */
.page-search .search-section {
    padding: 32px 0 24px;
    background: var(--gray-100);
}

/* 検索結果セクションの体裁 */
.search-results .search-title {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0;
}

.search-results .results-header {
    align-items: baseline;
}

.search-results .results-header .body-small,
.search-results .results-header span {
    font-size: 14px;
    color: var(--gray-600);
    white-space: nowrap;
    /* 縦崩れ対策 */
}

/* プロジェクトカード（article対応） */
.project-card {
    display: block;
    /* a→articleでも見た目維持 */
}

.project-title a.project-title-link {
    color: inherit;
    text-decoration: none;
}

.project-title a.project-title-link:hover {
    text-decoration: underline;
}

/* ボタン行のレイアウト */
.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* 検索ページ専用の軽量ヘッダ（再調整） */
.page-header {
    margin-top: 60px;
    /* 固定ヘッダー分 */
    padding: 60px 0;
    /* 16px→32px: 行間を確保 */
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.page-header__inner {
    grid-column: 1 / -1;
    max-width: 1120px;
    margin: 0 auto;
}

.page-header__title {
    font-size: 36px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.page-header__sub {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-700);
    max-width: 72ch;
}

@media (max-width: 768px) {
    .page-header {
        padding: 24px 0;
    }

    .page-header__title {
        font-size: 28px;
    }

    .page-header__sub {
        font-size: 16px;
    }
}

/* 検索フォーム・結果の横幅を整える */
.page-search .search-narrow {
    grid-column: 1 / -1;
    max-width: 1300px;
    margin: 0 auto;
}

/* 背景帯の余白をほどよく */
.page-search .search-section {
    padding: 24px 0;
    background: var(--gray-100);
}

/* 念のため横書きを強制（縦組み化の保険） */
.search-results,
.search-results * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* 見出し行を横並びに */
.search-results .results-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.search-results .search-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
}

.search-results .results-header .body-small,
.search-results .results-header span {
    font-size: 18px;
    color: var(--gray-600);
}

/* カードのタイポ調整でつぶれ感を軽減 */
.project-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.project-company {
    font-size: 14px;
    line-height: 1.5;
}

.project-details {
    gap: 10px;
}

.project-detail-item {
    line-height: 1.5;
}

.project-budget {
    margin-top: 12px;
    padding-top: 12px;
}

/* ボタン列を崩れにくく */
.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.project-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 3列 → 幅が狭い時は2列/1列に */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-search .search-section {
        padding: 20px 0;
    }
}

/* ニュースのカテゴリフィルタ（任意の微調整） */
.news-filter .form-input {
    padding: 10px 12px;
}

@media (max-width: 768px) {
    .news-filter {
        flex-wrap: wrap;
    }

    .news-filter .form-input {
        width: 100%;
        max-width: none;
    }
}

/* === 導入事例カードの安定レイアウト === */

/* 行内でカード高は揃う（Grid が各行の最大高に合わせます） */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* カード：縦積み。最下段に CTA を固定するため column レイアウト */
.case-card {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--black);
    background: #fff;
    height: 100%;
}

/* カバー～本文～声 を包む領域。ここを “声 下寄せ” にする */
.case-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* 余白は全てここが受け持つ */
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

/* 本文は伸びすぎないように固定感を持たせる（高さ安定） */
.case-body {
    flex: 0 0 auto;
    min-height: 160px;
    /* 目安：お好みで 140～200px 調整ください */
    max-height: 200px;
    /* 伸びすぎ防止（はみ出しは隠す） */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* タイトル・サマリーの行数クランプで高さを揃える */
.case-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 2行まで */
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: calc(1.35em * 2);
    /* 行数固定の見栄え補強 */
}

.case-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* 3行まで */
    overflow: hidden;
    color: var(--gray-700);
    margin-bottom: 12px;
    min-height: calc(1.6em * 3);
}

/* “利用者の声” は常に下寄せ（本文量で上下しない） */
.case-voice {
    margin-top: auto;
    /* ← これが肝：リンク領域内の最下段へ */
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 10px;
    align-items: flex-start;
    border-top: 1px solid var(--gray-200);
    padding: 12px 18px;
}

.case-voice img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gray-300);
}

.case-voice .comment {
    margin-top: 4px;
    font-size: 14px;
    color: var(--gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA はカードの最下段に固定表示 */
.case-cta {
    border-top: 1px solid var(--gray-200);
    padding: 0 18px 18px;
}

.case-cta .btn {
    width: 100%;
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    align-items: center;
}

.header-actions .user-actions {
    display: flex;
    flex-direction: column;
    /* 上：ようこそ / 下：ボタン列 */
    gap: 8px;
    align-items: flex-end;
    /* 右詰め */
}

.header-actions .welcome {
    font-weight: 600;
    white-space: nowrap;
    /* 折り返し防止（必要に応じて外してください） */
    text-align: right;
}

.header-actions .user-name {
    color: var(--primary);
}

.header-actions .action-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    /* 右寄せ */
    width: 100%;
}
