/**
 * Shard - 最先端のヒーローセクションスタイル
 * 3D効果、モダンなアニメーション、没入型デザイン要素を使用
 */

/* ヒーローセクションのベース構造 */
.hero-section-wrapper {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #0d766e 0%, #084c56 100%);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* スライド背景 */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.slide-1-bg {
    background-image: url('../img/hero/slide1-bg.jpg');
}

.slide-2-bg {
    background-image: url('../img/hero/slide2-bg.jpg');
}

.slide-3-bg {
    background-image: url('../img/hero/slide3-bg.jpg');
}

/* オーバーレイ */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 100, 98, 0.8), rgba(8, 76, 86, 0.7));
    z-index: -1;
}

/* テクスチャオーバーレイ */
.hero-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero/noise-texture.png');
    opacity: 0.05;
    z-index: -1;
}

/* ヒーローコンテンツ */
.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 2;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out forwards;
    padding: 2rem 0;
}

.hero-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient-purple-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-hero {
    font-size: 1.125rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-hero i {
    margin-left: 0.5rem;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.btn-hero:hover i {
    transform: translateX(3px);
}

.btn-hero-primary {
    background: linear-gradient(90deg, #12c1ba, #0a8c93);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(10, 140, 147, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 140, 147, 0.4);
}

.btn-hero-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(10, 140, 147, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-hero-secondary:active {
    transform: translateY(-1px);
}

/* 右側のコードエディター要素 */
.code-editor {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    width: 500px;
    background-color: #282a36;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    animation: slideInRight 0.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.editor-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #1e1f29;
    border-bottom: 1px solid #393a4d;
}

.editor-dots {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.editor-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-dot-red {
    background-color: #ff5f56;
}

.editor-dot-yellow {
    background-color: #ffbd2e;
}

.editor-dot-green {
    background-color: #27c93f;
}

.editor-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Monaco', 'Courier New', monospace;
}

.editor-body {
    padding: 1.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.code-line {
    display: flex;
    margin-bottom: 0.4rem;
}

.code-number {
    width: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    padding-right: 0.5rem;
    user-select: none;
}

.code-content {
    flex: 1;
}

.code-keyword {
    color: #ff79c6;
}

.code-function {
    color: #8be9fd;
}

.code-string {
    color: #f1fa8c;
}

.code-comment {
    color: #6272a4;
}

.code-punctuation {
    color: #f8f8f2;
}

.code-variable {
    color: #bd93f9;
}

.code-property {
    color: #66d9ef;
}

/* 技術アイコン */
.tech-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

.tech-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon img {
    width: 3rem;
    height: auto;
}

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

/* キューブオブジェクト */
.cube-wrapper {
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    perspective: 1000px;
    z-index: 1;
    opacity: 0.7;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.3), rgba(67, 56, 202, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cube-face-front {
    transform: translateZ(150px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(150px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* フローティング球体 */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(99, 102, 241, 0.1));
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatAnimation 6s ease-in-out infinite alternate;
}

.orb-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-delay: 0.5s;
}

.orb-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 20%;
    animation-delay: 1.5s;
}

.orb-3 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

/* スライダーセクション修正 */
.swiper-container {
    height: 500px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.swiper-slide {
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* スライドの背景 */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.slide-bg-1 {
    background-image: url('../img/slide-1.jpg');
}

.slide-bg-2 {
    background-image: url('../img/slide-2.jpg');
}

.slide-bg-3 {
    background-image: url('../img/slide-3.jpg');
}

/* スライドのオーバーレイ */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 54, 93, 0.8) 0%, rgba(43, 108, 176, 0.7) 100%);
    z-index: 2;
}

/* スライドのテクスチャ */
.slide-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/texture.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 3;
}

/* スライドのコンテンツ */
.slide-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    color: white;
}

.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* スライダーナビゲーション */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem;
}

/* スライダーページネーション */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .swiper-container {
        height: 450px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .swiper-container {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .swiper-container {
        height: 350px;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        display: none;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate(50px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
    100% {
        transform: translateY(5px) rotate(-5deg);
    }
}

@keyframes rotateCube {
    from {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* レスポンシブ */
@media (max-width: 1200px) {
    .hero-container {
        max-width: 960px;
    }

    .code-editor {
        width: 450px;
        right: 1rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }
    
    .tech-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .tech-icon img {
        width: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        max-width: 720px;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slide {
        height: auto;
        min-height: 550px;
        padding: 4rem 0;
    }
    
    .tech-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .tech-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .tech-icon img {
        width: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        max-width: 540px;
    }

    .hero-content {
        max-width: 100%;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-section-wrapper {
        min-height: 500px;
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .tech-icons {
        margin-top: 3rem;
        margin-bottom: 2rem;
    }
    
    .tech-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .tech-icon img {
        width: 2rem;
    }
}

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

    .hero-label {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        margin-bottom: 1.5rem;
    }

    .hero-section-wrapper {
        min-height: 450px;
    }

    .hero-slide {
        min-height: 450px;
        padding-top: 2rem;
    }
    
    .tech-icons {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .tech-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .tech-icon img {
        width: 1.75rem;
    }
}

/* メイン画面のUI調整 */
.site-main {
    min-height: calc(100vh - 70px);
    padding-bottom: 3rem;
    position: relative;
}

/* ヘッダーナビ調整 */
.navbar {
    padding: 0.75rem 0;
    background-color: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

/* フォームとボタンの調整 */
input, button, .btn {
    font-size: 0.9rem;
}

/* ニュースレターフォーム */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

/* 会員登録ボタン */
.btn-register {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* CTAセクション調整 */
.section-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(99, 102, 241, 0.9) 100%);
    color: white;
}

.section-cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
}

.section-cta .lead {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-label-text {
    font-size: 1.125rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
} 