/* css/style.css */

/* ==== Reset & Base ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
  }
  body {
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #1a1a1a;
    line-height: 1.8;
    font-size: 16px;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  img {
    max-width: 100%;
    display: block;
  }
  ul {
    list-style: none;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
  }
  .center {
    text-align: center;
  }
  
  /* ==== Common Section Padding ==== */
  .text-section {
    padding: 4rem 0;
  }
  
  /* ==== Hero / Swiper ==== */
  .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  .hero .swiper,
  .hero .swiper-wrapper,
  .hero .swiper-slide {
    width: 100%;
    height: 100%;
  }
  .hero .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center top;
  }
  
  /* ==== Overlay Header ==== */
  .main-header {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
  }
  .header-wrapper {
    width: 70%;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-logo {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.875em;
    font-weight: 700;
  }
  .main-menu {
    display: flex;
    gap: 1.5rem;
  }
  .main-menu a {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.875em;
    padding-bottom: 0.75em;
    position: relative;
    transition: color 0.2s;
  }
  .main-menu a:hover {
    color: #fce38a;
  }
  .main-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fce38a;
  }
  
  /* ==== Hero Texts with Fade ==== */
  .hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 5;
    width: 90%;
    max-width: 800px;
  }
  .hero-texts {
    position: relative;
  }
  .hero-texts .text {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .hero-texts .text.active {
    opacity: 1;
  }
  .hero-texts .text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    color: #fff;
  }
  .hero-texts .text p {
    margin-top: 0.5rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #fff;
  }
  
  /* ==== Progress Bar ==== */
  .hero-progress {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.3);
    z-index: 5;
  }
  .hero-progress-fill {
    width: 0%; height: 100%;
    background: #29a19c;
    transition: width 5s linear;
  }
  
  /* ==== Fancy Scroll Indicator ==== */
  .scroll-down {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
  }
  .scroll-down svg {
    width: 30px; height: 30px;
    stroke: #fff; fill: none; stroke-width: 2;
    stroke-dasharray: 60; stroke-dashoffset: 60;
    animation: draw 1s ease-in-out forwards, bounce 2s ease-in-out infinite 1s;
  }
  @keyframes draw {
    to { stroke-dashoffset: 0; }
  }
  @keyframes bounce {
    0%,100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
  }
  
  /* ==== Mission Section ==== */
  #mission {
    position: relative;
    background: #333;
    color: #f5f5f5;
  }
  #mission::before {
    content: attr(data-bg-text);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    white-space: nowrap;
    animation: fadeBg 10s infinite;
  }
  #mission .container {
    position: relative; z-index: 2;
  }
  #mission h2 {
    font-size: 2.5rem; margin-bottom: 1rem; text-align: center;
  }
  #mission p {
    font-size: 1.125rem; max-width: 800px; margin: 0 auto; text-align: center;
  }
  
  /* ==== Vision Section ==== */
  #vision {
    position: relative;
    background: #444;
    color: #f5f5f5;
  }
  #vision::before {
    content: attr(data-bg-text);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    white-space: nowrap;
    animation: fadeBg 10s infinite reverse;
  }
  #vision .container { position: relative; z-index: 2; }
  #vision h2 { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
  #vision p { font-size: 1.125rem; max-width: 800px; margin: 0 auto; text-align: center; }
  
  /* ==== Values Section ==== */
  #values {
    position: relative;
    background: #555;
    color: #f5f5f5;
  }
  #values::before {
    content: attr(data-bg-text);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    color: rgba(255,255,255,0.05);
    white-space: nowrap;
    animation: fadeBg 10s infinite alternate;
  }
  #values .container {
    position: relative; z-index: 2;
  }
  .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  .value-card {
    background: #f2f2f2;
    padding: 2rem;
    border-radius: 8px;
    color: #333;
    /* 常に表示 */
    opacity: 1;
    transform: none;
  }
  .value-card h3 {
    font-size: 1.25rem; margin-bottom: 0.5rem; color: #29a19c;
  }
  .value-card p {
    font-size: 1rem; color: #666;
  }
  
  /* ==== Products Section ==== */
  #products {
    padding: 4rem 0; background: #ededed;
  }
  #products h2.center {
    margin-bottom: 2rem;
  }
  .product-block {
    display: flex; align-items: center; gap: 4vw;
    margin-bottom: 4rem; flex-wrap: wrap;
  }
  .product-block:nth-child(even) { flex-direction: row-reverse; }
  .product-img {
    flex: 1 1 300px; height: 500px; overflow: hidden; border-radius: 8px;
  }
  .product-img img {
    width: 100%; height: 100%; object-fit: cover;
  }
  .product-info {
    flex: 1 1 300px; padding: 1rem;
  }
  .product-info h3 {
    font-size: 1.5rem; margin-bottom: 0.5rem;
  }
  .price {
    color: #29a19c; font-size: 1.1rem; margin-bottom: 1rem;
  }
  .btn {
    display: inline-block; background: #29a19c; color: #fff;
    padding: 0.75rem 1.5rem; border-radius: 30px; transition: opacity 0.3s;
  }
  .btn:hover { opacity: 0.85; }
  
  /* ==== Company Section ==== */
  #company {
    padding: 4rem 0; background: #f2f2f2;
  }
  .company-table {
    width: 100%; border-collapse: collapse; margin-bottom: 2rem;
  }
  .company-table th, .company-table td {
    padding: 0.8rem; border: 1px solid #ddd; text-align: left;
  }
  .ceo-message {
    border-left: 4px solid #29a19c; padding-left: 1.25rem;
    color: #333; margin-bottom: 2rem;
  }
  .map {
    width: 100%; height: 300px; border: none; border-radius: 8px;
  }
  
  /* ==== Contact Section ==== */
  #contact {
    padding: 4rem 0; background: #fff;
  }
  form {
    max-width: 600px; margin: 0 auto; display: grid; gap: 1rem;
  }
  input, textarea {
    width: 100%; padding: 0.8rem; border: 1px solid #ccc;
    border-radius: 6px; font-family: inherit; font-size: 1rem;
  }
  textarea { resize: vertical; min-height: 150px; }
  input:focus, textarea:focus {
    outline: none; border-color: #29a19c;
    box-shadow: 0 0 0 2px rgba(41,161,156,0.2);
  }
  .submit-btn {
    background: #29a19c; color: #fff; padding: 0.9rem 2rem;
    border: none; border-radius: 30px; font-weight: 500;
    cursor: pointer; transition: opacity 0.3s;
  }
  .submit-btn:hover { opacity: 0.88; }
  
  /* ==== Footer ==== */
  footer {
    padding: 2rem 0; text-align: center; background: #ddd;
    color: #666; font-size: 0.9rem;
  }
  
  /* — ハンバーガー初期非表示 — */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}

/* — デスクトップ：通常表示 — */
@media (min-width: 768px) {
  #nav {
    display: block;
  }
}

/* — モバイル：ハンバーガーメニュー切り替え — */
@media (max-width: 767px) {
  /* ハンバーガーを表示 */
  .burger {
    display: flex;
  }
  /* ナビは初期閉じ */
  #nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(0,0,0,0.9);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 999;
  }
  #nav.open {
    transform: translateX(0);
  }
  /* メニューリストを縦並びに */
  .main-menu {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .main-menu a {
    color: #fff;
    font-size: 1rem;
  }
}
