.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e9ff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.geometry-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.6) 0%, rgba(155, 89, 182, 0.6) 100%);
    opacity: 0.5;
    filter: blur(30px);
    transform-origin: center;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.4) 0%, rgba(26, 188, 156, 0.4) 100%);
    animation-delay: 2s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 15%;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(52, 152, 219, 0.3) 100%);
    animation-delay: 3s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    right: 20%;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.3) 0%, rgba(241, 196, 15, 0.3) 100%);
    animation-delay: 1s;
}

.geometric-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.15;
    z-index: 1;
}

.grid-line {
    position: absolute;
    background: linear-gradient(
        90deg,
        rgba(52, 152, 219, 0) 0%,
        rgba(52, 152, 219, 0.5) 50%,
        rgba(52, 152, 219, 0) 100%
    );
}

.horizontal-line {
    height: 1px;
    width: 100%;
}

.vertical-line {
    width: 1px;
    height: 100%;
}

.animated-vector {
    position: absolute;
    stroke: #3498db;
    stroke-width: 1;
    opacity: 0.7;
    fill: none;
    z-index: 1;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 10;
}

.hero-content {
    text-align: left;
    color: #333;
    position: relative;
}

.hero-title {
    font-size: 9rem;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 0;
    line-height: 0.9;
    position: relative;
    opacity: 0;
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(50px);
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #3498db, rgba(155, 89, 182, 0.5));
    transform: scaleX(0);
    transform-origin: left;
    animation: lineExpand 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.8s;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #5e6a78;
    max-width: 600px;
    line-height: 1.8;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.5s;
}

.hero-subtitle p {
    display: inline;
}

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

@keyframes lineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.highlight {
    font-weight: 600;
    color: #3498db;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation:
        fadeIn 1s ease forwards 1.5s,
        bounce 2s infinite 2s;
}

.scroll-arrow svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #3498db;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* レスポンシブデザイン対応 */
@media (max-width: 991px) {
    .hero-title {
        font-size: 6rem;
    }

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

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    @keyframes lineExpand {
        from {
            transform: translateX(-50%) scaleX(0);
        }
        to {
            transform: translateX(-50%) scaleX(1);
        }
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin: 30px auto 0;
    }
}

/* ここからCOMPANYページの他のセクション */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3498db;
    margin-bottom: 15px;
    position: relative;
}

.section-label::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

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

.intro-section .container {
    max-width: 900px;
}

.intro-section .intro-text {
    font-size: 1.25rem;
    color: #505a66;
    margin-bottom: 50px;
    opacity: 1;
    font-weight: normal;
}

.bg-gray {
    background-color: #f8f9fa;
}

/* CEOセクションのアニメーション追加 */
.ceo-section {
    overflow: hidden;
}

.geometric-shapes {
    position: absolute;
    z-index: -1;
}

.circle-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid rgba(52, 152, 219, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.circle-shape.animate {
    opacity: 1;
    transform: scale(1);
}

.circle-shape-1 {
    top: -100px;
    right: -100px;
    transition-delay: 0.1s;
}

.circle-shape-2 {
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    transition-delay: 0.3s;
}

.ceo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.ceo-section-title-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ceo-section-title-wrapper.animate {
    opacity: 1;
    transform: translateY(0);
}

.ceo-message h2 {
    margin-bottom: 15px;
}

.title-divider {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.line {
    width: 50px;
    height: 1px;
    background-color: #3498db;
    margin-right: 15px;
}

.ceo-quote {
    font-style: italic;
    color: #616e7c;
}

.message-card {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.message-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.message-card::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 20px;
    font-size: 120px;
    color: rgba(52, 152, 219, 0.1);
    font-family: Georgia, serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}

.message-card.animate::before {
    opacity: 1;
    transform: translateY(0);
}

.ceo-message-content {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.ceo-message-content p {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ceo-message-content p.animate:nth-child(1) {
    transition-delay: 0.2s;
}
.ceo-message-content p.animate:nth-child(2) {
    transition-delay: 0.4s;
}
.ceo-message-content p.animate:nth-child(3) {
    transition-delay: 0.6s;
}
.ceo-message-content p.animate:nth-child(4) {
    transition-delay: 0.8s;
}
.ceo-message-content p.animate:nth-child(5) {
    transition-delay: 1s;
}

.ceo-message-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

.ceo-section .ceo-info {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 1.1s;
    animation: none;
}

.ceo-info.animate {
    opacity: 1;
    transform: translateY(0);
}

.ceo-section .ceo-name {
    font-size: 1.3rem;
}

.ceo-image-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

.ceo-image-container.animate {
    opacity: 1;
    transform: translateX(0);
}

.ceo-section .ceo-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: #333;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    clip-path: none;
}

.ceo-section .ceo-image img {
    width: 100%;
    height: auto;
}

.ceo-image:hover {
    transform: translate(8px, 8px);
}

.image-border {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    border: 2px solid #3498db;
    z-index: 1;
    opacity: 0;
    transform: translate(15px, 15px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.8s;
}

.image-border.animate {
    opacity: 1;
    transform: translate(8px, 8px);
}

.corner-accent {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid #3498db;
    z-index: 1;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.corner-accent.animate {
    opacity: 1;
}

.corner-tl {
    top: -8px;
    left: -8px;
    border-right: none;
    border-bottom: none;
    transform: translate(-15px, -15px);
    transition-delay: 1s;
}

.corner-tl.animate {
    transform: translate(0, 0);
}

.corner-br {
    bottom: -8px;
    right: -8px;
    border-left: none;
    border-top: none;
    transform: translate(15px, 15px);
    transition-delay: 1.2s;
}

.corner-br.animate {
    transform: translate(0, 0);
}

.timeline-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 80px;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-center-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background-color: #ecf0f1;
}

.timeline-item {
    margin-bottom: 100px;
    transform: translateX(50%);
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item:nth-child(odd) {
    transform: translateX(-50%);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-year {
    position: relative;
    width: 120px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 50px;
    z-index: 3;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
}

.timeline-date {
    background-color: #f1f5f9;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-text {
    color: #505a66;
}

.timeline-dot {
    position: relative;
    width: 16px;
    height: 16px;
    background-color: #3498db;
    border-radius: 50%;
    margin: 0 auto;
    z-index: 2;
}

.timeline-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.timeline-image img {
    width: 100%;
}

/* 会社概要セクションの新しいスタイル */
.company-info-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.company-info-card {
    max-width: 1100px;
    margin: 60px auto 0;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.company-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.info-group {
    padding: 40px;
    margin: 0;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s ease;
}

.info-group:hover {
    background-color: rgba(52, 152, 219, 0.02);
}

.info-group h3 {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3498db;
    margin-bottom: 10px;
    opacity: 0.9;
}

.info-group p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

/* グリッドレイアウト */
.info-group:nth-child(1) {
    grid-column: span 4;
}
.info-group:nth-child(2) {
    grid-column: span 8;
}
.info-group:nth-child(3) {
    grid-column: span 3;
}
.info-group:nth-child(4) {
    grid-column: span 3;
}
.info-group:nth-child(5) {
    grid-column: span 3;
}
.info-group:nth-child(6) {
    grid-column: span 3;
}
.info-group:nth-child(7) {
    grid-column: span 3;
}

/* Google Maps セクション */
.map-container {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    z-index: 1;
}

.map-overlay h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 10px;
}

.map-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.map-overlay a {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.map-overlay a:hover {
    color: #2980b9;
}

.vision-section {
    background-color: #2c3e50;
    color: white;
    position: relative;
    overflow: hidden;
}

.blur-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.3);
    filter: blur(100px);
    z-index: 0;
}

.blur-circle-1 {
    top: -200px;
    right: -200px;
}

.blur-circle-2 {
    bottom: -200px;
    left: -200px;
}

.vision-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.vision-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.vision-text {
    font-size: 1.25rem;
    color: #ecf0f1;
    margin-bottom: 50px;
}

.btn a {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid transparent !important;
    color: #fff;
    background-color: #3498db;
    text-decoration: none;
    font-size: 14px !important;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    z-index: 1;
}

.btn a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn a:hover {
    color: #3498db;
    border: 2px solid #3498db !important;
    background-color: #fff;
}

.btn a:hover::before {
    width: 100%;
}

.btn-outline {
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

/* レスポンシブデザイン対応 */
@media (max-width: 1100px) {
    .info-group:nth-child(1) {
        grid-column: span 6;
    }
    .info-group:nth-child(2) {
        grid-column: span 6;
    }
    .info-group:nth-child(3) {
        grid-column: span 4;
    }
    .info-group:nth-child(4) {
        grid-column: span 4;
    }
    .info-group:nth-child(5) {
        grid-column: span 4;
    }
    .info-group:nth-child(6) {
        grid-column: span 6;
    }
    .info-group:nth-child(7) {
        grid-column: span 6;
    }
}

@media (max-width: 991px) {
    .ceo-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ceo-image-container {
        order: -1;
    }

    .timeline-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-wrap: wrap;
    }

    .timeline-item:nth-child(even) .timeline-content {
        flex-direction: column-reverse;
    }

    .timeline-content .timeline-left-content,
    .timeline-content .timeline-right-content {
        width: 100%;
    }

    .timeline-item:nth-child(even) .timeline-content .timeline-left-content {
        margin-top: 1em;
    }

    .timeline-center-line,
    .timeline-dot {
        display: none;
    }

    .timeline-right-content {
        grid-row: 2;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin: 30px auto 0;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .company-info-grid {
        display: flex;
        flex-direction: column;
    }

    .info-group {
        border-right: none;
        padding: 30px;
    }

    .map-container {
        height: 350px;
    }

    .map-overlay {
        left: 20px;
        top: 20px;
        max-width: calc(100% - 40px);
    }

    .vision-title {
        font-size: 2.2rem;
    }

    .vision-text {
        font-size: 1.1rem;
    }
}
