/* =============================================================================
   ページ専用スタイルシート
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Page Header
   ----------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 183, 197, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(233, 30, 99, 0.15) 0%, transparent 50%);
}

/* Page Header with Image Background */
.page-header-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header-image::before {
    background: linear-gradient(
        135deg,
        rgba(13, 71, 161, 0.9) 0%,
        rgba(21, 101, 192, 0.85) 50%,
        rgba(13, 71, 161, 0.9) 100%
    );
}

.page-header-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
}

.breadcrumb a {
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-pink);
}

/* -----------------------------------------------------------------------------
   Company Information Grid
   ----------------------------------------------------------------------------- */
.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.info-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--mid-gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-value {
    color: var(--dark-gray);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-deep-pink));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.certification-badge i {
    font-size: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Offices
   ----------------------------------------------------------------------------- */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.office-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.office-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-navy));
    color: var(--white);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.office-header i {
    font-size: 2rem;
}

.office-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.office-info {
    padding: var(--spacing-md);
}

.office-address,
.office-contact,
.office-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
    line-height: 1.8;
}

.office-address i,
.office-contact i,
.office-note i {
    color: var(--primary-deep-pink);
    margin-top: 0.25rem;
}

.office-note a {
    color: var(--primary-deep-pink);
    text-decoration: underline;
}

.office-map {
    height: 200px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--tech-gray);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* -----------------------------------------------------------------------------
   Background Sections (Common Styles)
   ----------------------------------------------------------------------------- */
.bg-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.bg-section .container {
    position: relative;
    z-index: 2;
}

.bg-section .section-title,
.bg-section .section-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Individual Background Images */

.bg-it-solutions {
    background-image: url('../images/bg-it-solutions.jpg');
}

.bg-achievements {
    background-image: url('../images/bg-achieve.jpg');
}

.bg-global-partnership {
    background-image: url('../images/bg-global-partnership.jpg');
}

.bg-engineer-team {
    background-image: url('../images/tech-programming-team.jpg');
}

.bg-social-contribution {
    background-image: url('../images/bg-soc.jpg');
}

.bg-philosophy {
    background-image: url('../images/hero-sakura-street.jpg');
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.philosophy-text-ja {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--primary-pink);
}

.philosophy-text-en {
    font-size: 1rem;
    color: var(--tech-gray);
    line-height: 1.6;
    font-style: italic;
}

.philosophy-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: var(--spacing-xl) auto 0;
}

.philosophy-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.philosophy-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.philosophy-detail-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.philosophy-detail-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    text-align: center;
}

.philosophy-detail-text {
    font-size: 0.95rem;
    color: var(--tech-gray);
    line-height: 1.8;
    text-align: left;
}

/* English version - horizontal layout */
.philosophy-details-en {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.philosophy-detail-card-en {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.philosophy-detail-card-en:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.philosophy-detail-icon-en {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-detail-icon-en i {
    font-size: 2rem;
    color: var(--white);
}

.philosophy-detail-content-en {
    flex: 1;
}

.philosophy-detail-title-en {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.philosophy-detail-text-en {
    font-size: 1rem;
    color: var(--tech-gray);
    line-height: 1.8;
    text-align: left;
}

/* -----------------------------------------------------------------------------
   Mission & Vision
   ----------------------------------------------------------------------------- */
.mission-vision-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.mv-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mv-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.mv-card h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.mv-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-deep-pink);
    margin-bottom: 0.75rem;
}

.mv-description {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.vision-pillars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.pillar {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.pillar i {
    font-size: 1.5rem;
    color: var(--primary-deep-pink);
    flex-shrink: 0;
}

.pillar h4 {
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
    font-size: 1rem;
    white-space: nowrap;
}

.pillar p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   President Message
   ----------------------------------------------------------------------------- */
.president-message {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.president-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.president-photo {
    position: sticky;
    top: 100px;
}

.president-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 0.75rem;
}

.president-info {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.president-company {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.president-title {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.president-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.message-content h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin: 1.25rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-pink);
}

.message-content h3:first-child {
    margin-top: 0;
}

.message-content p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 0.95rem;
}

.message-content strong {
    color: var(--primary-deep-pink);
    font-size: 1.05rem;
}

.signature {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--mid-gray);
    text-align: right;
}

.signature p {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.signature .name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* -----------------------------------------------------------------------------
   Corporate Culture
   ----------------------------------------------------------------------------- */
.culture-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.culture-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.culture-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.culture-detail-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-deep-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.culture-detail-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    text-align: center;
}

.culture-detail-text {
    font-size: 0.95rem;
    color: var(--tech-gray);
    line-height: 1.8;
    text-align: left;
}

/* -----------------------------------------------------------------------------
   Timeline
   ----------------------------------------------------------------------------- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: none;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    align-items: center;
}

.timeline-year {
    width: 90px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-deep-pink);
    flex-shrink: 0;
    text-align: right;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -23px;
    width: 10px;
    height: 10px;
    background: var(--primary-deep-pink);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary-pink);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--dark-gray);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* -----------------------------------------------------------------------------
   サービスページ用
   ----------------------------------------------------------------------------- */
.service-detail {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
}

.service-detail h3 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-detail h3 i {
    font-size: 2.5rem;
    color: var(--primary-deep-pink);
}

.service-overview {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.feature-box {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-deep-pink);
}

.feature-box h4 {
    color: var(--primary-navy);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-box h4 i {
    color: var(--primary-deep-pink);
}

.feature-box ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-box li {
    color: var(--dark-gray);
    padding-left: 1.5rem;
    position: relative;
}

.feature-box li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-deep-pink);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-stack-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    font-size: 1.1rem;
    font-weight: 600;
}

.tech-stack-title i {
    color: var(--primary-deep-pink);
    margin-right: 0.5rem;
}

/* Service Visual Layout */
.service-visual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    min-height: 500px;
}

.service-visual-layout.reverse {
    direction: rtl;
}

.service-visual-layout.reverse > * {
    direction: ltr;
}

.service-visual-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形にする */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-visual-layout:hover .service-visual-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.service-visual-content {
    padding: var(--spacing-md);
}

.service-visual-content h3 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-visual-content h3 i {
    font-size: 2.5rem;
    color: var(--primary-deep-pink);
}

.service-visual-content .service-overview {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.service-features-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: var(--spacing-md) 0;
}

.feature-box-compact {
    background: var(--light-gray);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-deep-pink);
}

.feature-box-compact h4 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.feature-box-compact h4 i {
    color: var(--primary-deep-pink);
}

.feature-box-compact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-box-compact li {
    color: var(--dark-gray);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.feature-box-compact li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-deep-pink);
}

.highlight-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(255, 183, 197, 0.1));
    border-radius: 12px;
    border-left: 4px solid var(--primary-deep-pink);
}

.highlight-box.highlight-green {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(25, 118, 210, 0.1));
    border-left-color: var(--accent-green);
}

.highlight-box h4 {
    color: var(--primary-deep-pink);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-box.highlight-green h4 {
    color: var(--accent-green);
}

.highlight-box p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin: 0;
}

/* Partner Countries Detail */
.partner-countries-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.partner-country {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.partner-country:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.country-flag {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.partner-country h5 {
    color: var(--primary-navy);
    font-size: 1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-visual-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-visual-layout.reverse {
        direction: ltr;
    }
    
    .service-visual-image {
        aspect-ratio: 1 / 1; /* 正方形を維持 */
    }
}

@media (max-width: 768px) {
    .service-visual-image {
        aspect-ratio: 1 / 1; /* 正方形を維持 */
    }
    
    .service-visual-content h3 {
        font-size: 1.5rem;
    }
    
    .service-visual-content h3 i {
        font-size: 2rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .partner-countries-detail {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

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

.tech-section h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    background: var(--white);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--mid-gray);
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-size: 0.9rem;
}

.tech-tag:hover {
    border-color: var(--primary-deep-pink);
    color: var(--primary-deep-pink);
    transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
   Office Detail Page
   ----------------------------------------------------------------------------- */
.office-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.office-detail-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-pink);
}

.office-detail-header h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.office-label {
    font-size: 1rem;
    color: var(--tech-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.office-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.office-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-group h3 {
    color: var(--primary-navy);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-group p {
    color: var(--dark-gray);
    line-height: 1.6;
    padding-left: 1.75rem;
    font-size: 0.95rem;
}

.office-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.access-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.access-section h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.access-methods {
    display: block;
    margin-bottom: 1.5rem;
}

.bus-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.access-method {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.access-method h4 {
    color: var(--primary-navy);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.access-method ul {
    list-style: none;
    padding: 0;
}

.access-method li {
    padding: 0.4rem 0;
    color: var(--dark-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

.access-method h5 {
    color: var(--primary-navy);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.bus-routes {
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1), rgba(255, 183, 197, 0.1));
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--primary-navy);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    border-left: 3px solid var(--primary-deep-pink);
}

.bus-timetable {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.bus-timetable h4 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timetable-note {
    color: var(--primary-deep-pink);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.timetable-column h5 {
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.time-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-list span {
    background: var(--light-gray);
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary-navy);
}

.timetable-link {
    text-align: center;
    margin-top: var(--spacing-md);
}

.timetable-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.timetable-link a:hover {
    color: var(--primary-deep-pink);
}

.office-map-large {
    margin-top: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .bus-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bg-section {
        background-attachment: scroll;
        min-height: 350px;
    }
    
    .philosophy-content {
        padding: 1.5rem;
    }
    
    .philosophy-details {
        grid-template-columns: 1fr;
        margin-top: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .philosophy-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .philosophy-detail-title {
        font-size: 1rem;
    }
    
    .philosophy-detail-text {
        font-size: 0.9rem;
    }
    
    .philosophy-detail-card-en {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .philosophy-detail-icon-en {
        width: 60px;
        height: 60px;
    }
    
    .philosophy-detail-icon-en i {
        font-size: 1.75rem;
    }
    
    .philosophy-detail-title-en {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .philosophy-detail-text-en {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .office-detail-content {
        grid-template-columns: 1fr;
    }
    
    .bus-info-grid {
        grid-template-columns: 1fr;
    }
    
    .timetable-grid {
        grid-template-columns: 1fr;
    }
    
    .time-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* -----------------------------------------------------------------------------
   Partner Countries Detail (Services Page)
   ----------------------------------------------------------------------------- */
.partner-countries-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.partner-country {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--mid-gray);
    transition: var(--transition-normal);
}

.partner-country:hover {
    border-color: var(--primary-deep-pink);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.country-flag {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.partner-country h5 {
    color: var(--primary-navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.partner-country p {
    color: var(--tech-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
/* プライバシーポリシー系ページの余白を極限まで削減（PC版） */
body:has(.page-title:is(:contains("プライバシーポリシー"), :contains("個人情報"), :contains("サステナビリティ"))) .container,
.page-title:is(:contains("プライバシーポリシー"), :contains("個人情報"), :contains("サステナビリティ")) ~ * .container {
    padding: 0 1rem !important;
}

/* プライバシーポリシー系ページのカード余白削減（PC版） */
body div[style*="max-width: 900px"] {
    padding: 2rem 1.5rem !important;
    margin: 1rem auto !important;
}

body div[style*="max-width: 900px"] > div[style*="margin-bottom"] {
    margin-bottom: 1.5rem !important;
}

body div[style*="max-width: 900px"] h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
}

body div[style*="max-width: 900px"] h4 {
    font-size: 1.1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

body div[style*="max-width: 900px"] p {
    line-height: 1.7 !important;
    margin-bottom: 0.75rem !important;
}

body div[style*="max-width: 900px"] ul,
body div[style*="max-width: 900px"] ol {
    margin-bottom: 0.75rem !important;
}

body div[style*="max-width: 900px"] li {
    line-height: 1.7 !important;
    margin-bottom: 0.5rem !important;
}

body div[style*="background: var(--light-gray)"] {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
    /* モバイル版で横スクロールを完全に防止 */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* すべての要素が画面幅を超えないように */
    * {
        max-width: 100% !important;
    }
    
    /* モバイル時のコンテナとページ余白をギリギリまで削減 */
    .container {
        padding: 0 0.25rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .page-header {
        padding: 6rem 0.25rem 1.5rem !important;
    }
    
    .page-title {
        font-size: 1.6rem !important;
    }
    
    .section {
        padding: 1rem 0 !important;
    }
    
    /* サービスページのカード余白を削減（モバイル版） */
    .service-detail {
        padding: 1rem 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-detail h3 {
        font-size: 1.5rem !important;
    }
    
    .service-detail h3 i {
        font-size: 1.8rem !important;
    }
    
    .service-features {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .feature-box {
        padding: 0.75rem !important;
    }
    
    /* プライバシーポリシー系ページのカード余白を極限まで削減（モバイル版） */
    body div[style*="max-width: 900px"] {
        padding: 1rem 0.5rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 4px !important;
    }
    
    body div[style*="max-width: 900px"] > div[style*="margin-bottom"] {
        margin-bottom: 1rem !important;
    }
    
    body div[style*="max-width: 900px"] h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.4rem !important;
    }
    
    body div[style*="max-width: 900px"] h4 {
        font-size: 1rem !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    body div[style*="max-width: 900px"] p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.5rem !important;
    }
    
    body div[style*="max-width: 900px"] ul,
    body div[style*="max-width: 900px"] ol {
        font-size: 0.875rem !important;
        padding-left: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    body div[style*="max-width: 900px"] li {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.3rem !important;
        padding-left: 1.5rem !important;
    }
    
    body div[style*="background: var(--light-gray)"] {
        padding: 0.75rem 0.5rem !important;
        margin-bottom: 1rem !important;
        border-radius: 4px !important;
    }
    
    body div[style*="background: var(--light-gray)"] h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    body div[style*="background: var(--light-gray)"] p {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .company-info-grid,
    .offices-grid,
    .mission-vision-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .president-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .president-photo {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 100px;
    }
    
    .timeline-year {
        width: 100px;
        font-size: 1.2rem;
    }
    
    .timeline-year::after {
        right: -25px;
    }
}

/* -----------------------------------------------------------------------------
   Technology Page Enhanced Styles
   ----------------------------------------------------------------------------- */

/* Compact Section Spacing for Technology Page */
.section-compact {
    padding: 2.5rem 0 !important;
}

.section-compact .section-title {
    margin-bottom: 0.75rem;
}

.section-compact .section-subtitle {
    margin-bottom: 1.25rem;
}

/* Reduce spacing for tech stack sections */
.tech-stack-sections {
    gap: 1.25rem !important;
}

.tech-section {
    margin-bottom: 0;
}

/* Expert Tech Stack Section */
.tech-stack-sections {
    display: grid;
    gap: 2rem;
}

.tech-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-deep-pink), var(--primary-pink));
    transition: var(--transition-normal);
}

.tech-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 64, 129, 0.2);
    border-color: rgba(255, 64, 129, 0.3);
}

.tech-section:hover::before {
    width: 8px;
}

.tech-section h3 {
    color: var(--primary-navy);
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-section h3 i {
    color: var(--primary-deep-pink);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.1), rgba(255, 183, 197, 0.1));
    border-radius: var(--radius-md);
}

.tech-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--white);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    text-align: center;
    border: 2px solid #e0e0e0;
    color: var(--dark-gray);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.15), rgba(255, 183, 197, 0.15));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.tech-tag:hover {
    border-color: var(--primary-deep-pink);
    color: var(--primary-deep-pink);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.25);
}

.tech-tag:hover::before {
    width: 300px;
    height: 300px;
}

/* Expertise Cards with Gradient */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.expertise-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.05), rgba(21, 101, 192, 0.05));
    transform: rotate(45deg);
    transition: var(--transition-normal);
    opacity: 0;
}

.expertise-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 32px rgba(255, 64, 129, 0.2);
    border-color: var(--primary-deep-pink);
}

.expertise-card:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.expertise-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-deep-pink), var(--primary-pink));
    border-radius: 50%;
    color: var(--white);
    font-size: 1.75rem;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.3);
}

.expertise-card:hover .expertise-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 64, 129, 0.5);
}

.expertise-card h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.expertise-card p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Learning Culture Cards with Color Icons */
.learning-culture {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 1200px) {
    .learning-culture {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .learning-culture {
        grid-template-columns: repeat(2, 1fr);
    }
}

.culture-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.culture-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-deep-pink), var(--primary-pink));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.culture-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-pink);
}

.culture-card:hover::after {
    transform: scaleX(1);
}

.culture-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition-normal);
}

.culture-card:nth-child(1) i {
    color: #4CAF50;
    text-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.culture-card:nth-child(2) i {
    color: #FFC107;
    text-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.culture-card:nth-child(3) i {
    color: #FF5722;
    text-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.culture-card:nth-child(4) i {
    color: var(--primary-deep-pink);
    text-shadow: 0 4px 12px rgba(255, 64, 129, 0.4);
}

.culture-card:hover i {
    transform: scale(1.2) rotateY(360deg);
}

.culture-card h3 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.culture-card p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Global Skills Enhanced */
.global-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.global-skill {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
    border-left: 4px solid transparent;
}

.global-skill:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.15);
    border-left-color: var(--primary-blue);
}

.global-skill i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.global-skill:hover i {
    transform: scale(1.15);
    color: var(--primary-deep-pink);
}

.global-skill h4 {
    color: var(--primary-navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.global-skill p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Team Description Single Line */
.team-description-single {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-deep-pink);
    position: relative;
    z-index: 1;
}

.team-description-single p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin: 0;
    text-align: justify;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tech-section {
        padding: 1.25rem;
    }
    
    .tech-section h3 {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .tech-tags-grid {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .expertise-grid,
    .learning-culture,
    .global-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-card,
    .culture-card {
        padding: 1.5rem;
    }
    
    .expertise-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .culture-card i {
        font-size: 2.5rem;
    }
    
    .team-description-single {
        padding: 1.25rem;
    }
    
    .team-description-single p {
        font-size: 0.95rem;
    }
}