/* 
 * MAR5AUX ウェブサイト スタイルシート
 * 黒と白を基調としたスタイリッシュなデザイン
 */

/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

.footer-logo a  {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

a {
    color: #000;
    text-decoration: none;
}

ul {
    list-style: none;
}

.sp {
    display: none;
}

@media (max-width: 768px){
    .sp {display: block;
    }
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 0.05em;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    transition: top 0.3s ease;  /* topプロパティが0.3秒かけて変化 */
}

.header-container {
    display: flex;
    height: 46px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    flex: 1;
    position:absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: transform 0.5s ease;  /* アニメーション効果を追加 */
}

.logo a {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    padding-left: 0;
}

/* .logo に hidden クラスがついたとき、さらに上にずらして隠す */
.logo.hidden {
    transform: translate(-50%, -150%);
}


.main-nav {
    display: flex;
    flex: 2;
    justify-content: center;
    position: static; /* absoluteを解除 */
    transform: none; /* transformを解除 */
}


.main-nav a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

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

/* ハンバーガーメニュー展開時のナビゲーション余白調整 */
.main-nav li {
    margin-bottom: 20px;  /* メニュー項目の下にゆとりを追加 */
}

.main-nav li:last-child {
    margin-bottom: 0;  /* 最後だけ余白なしに */
}


/* ハンバーガーメニュー展開時（縦並びに揃える） */
.nav-buttons {
    display: flex;
    flex-direction: column; /* ←これを追加！ */
    align-items: center;    /* 中央揃え */
    gap: 20px;
    margin-left: auto;
  }
  

.nav-buttons > div {
    display: flex;
    gap: 20px;
  }
  .nav-buttons .contact-btn,
  .nav-buttons .icon-btn,
  .nav-buttons .download-btn,
  .nav-buttons .contact-line-btn {
    margin-left: 0;
}

.main-nav, .nav-buttons {
    display: none;
}

@media (max-width: 768px) {
    .nav-buttons {
      flex-direction: column;
      align-items: center;
    }
  }
  

/* SNSアイコンのスタイル統一 */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}


.download-btn, .contact-btn, .contact-line-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    margin-left: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.download-btn:hover, .contact-btn:hover, .contact-line-btn:hover {
    background-color: #fff;
    color: #000;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* ここにアクティブ状態を追加 */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* styles.cssの修正箇所 */
.hero {
    height: 130vh;
    background-image: url('images/hero-bg.jpg');
    background-size: auto;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* より暗めのオーバーレイ */
}

.hero-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}





/* フッター */
footer {
    background-color: #000;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 50px;
}

.footer-info {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-nav {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-nav ul li {
    margin-bottom: 15px;
}

.footer-nav ul li a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

/* フッター用のSNSアイコン調整 */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .icon-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 0; /* フッターではマージンを削除 */
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.8rem;
}

/* JavaScript用クラス */
.scroll-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* レスポンシブスタイル */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .feature-item {
        flex-direction: column;
    }
    
    .feature-item.reverse {
        flex-direction: column;
    }
    
    .feature-content, .feature-image {
        width: 100%;
        padding: 0;
    }
    
    .feature-content {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .feature-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    
    .hamburger-menu {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .concept-lead {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 2.5rem;
    }
    
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-title {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
}

/* CTAセクション */
.cta {
    padding: 120px 0;
    background-image: url('images/cta-bg.jpg');
    background-size: auto;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.cta .section-container {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    color: #fff;
    border: 1px solid #fff;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    color: #000;
}

.cta-button.secondary {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cta-button.secondary:hover {
    background-color: #fff;
    color: #000;
}

.cta-button.line {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.cta-button.line:hover {
    background-color: #fff;
    color: #000;
}

.products {
    padding: 120px 0;
    background-color: #f9f9f9;
}

.products-lead {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.view-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.view-button:hover {
    background-color: #000;
    color: #fff;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}


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

.view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .navigation-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    
    .navigation-grid a:last-child {
        grid-column: span 1;
    }
    
}