   :root{
      --bg:#f9f9f9;
      --text:#777;
      --muted:#666;
      --nav-bg:#fff;
      --nav-text:#777;
      --accent:#000;
      --maxw:1100px;
      --radius:16px;
      --shadow:0 6px 18px rgba(0,0,0,0.1);
    }

    *{box-sizing:border-box;}
    body{
      margin:0;
        background: #f9f9f9;
        font-family: "Helvetica Neue", Arial, sans-serif;
        background:var(--bg);
      color:var(--text);
      line-height:1.9;
    }

    /* ===== NAV ======================================== */
    header{
      position:sticky;
      top:0;
      z-index:1000;
    }

    .nav-wrap{
     background:var(--nav-bg);
      box-shadow:var(--shadow);
    }

    .nav-inner{
      max-width:var(--maxw);
      margin:0 auto;
      padding:10px 16px;
      display:flex;
      align-items:center;
      justify-content:center;
      position:relative;
    }

    /* hamburger button (mobile) */
    .hamburger{
      position:absolute;
      left:12px;
      top:10px;
      width:44px;
      height:36px;
      border:none;
      background:transparent;
      cursor:pointer;
      display:none; /* show only on mobile */
    }
    .hamburger span{
      display:block;
      height:2px;
      background:#111;
      margin:7px 0;
      transition:0.25s ease;
    }
    .hamburger.open span:nth-child(1){transform:translateY(9px) rotate(45deg);}
    .hamburger.open span:nth-child(2){opacity:0;}
    .hamburger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg);}

    nav ul{
      list-style:none;
      margin:0;
      padding:0;
      display:flex;
      gap:18px;
      align-items:center;
      justify-content:center;
      flex-wrap:wrap;
    }

    nav a{
      text-decoration:none;
      color:var(--nav-text);
      padding:6px 8px;
      border-radius:8px;
      font-weight:300;
      letter-spacing:0.02em;
      transition:0.15s ease;
      display:inline-block;
    }
    nav a:hover{background:#f0f0f0;}

    nav a.active{
      font-weight:700;
      text-decoration:underline;
      text-underline-offset:4px;
    }

    /* ===== HERO (logo + name) ======================================== */
    .hero{
      max-width:var(--maxw);
      margin:0 auto;
      padding:28px 16px 8px;
      text-align:center;
      font-family: "M PLUS Rounded 1c", sans-serif;
      font-weight:100;
     
    }
    .hero .logo{
      width:80px;
      height:80px;
      object-fit:contain;
      display:block;
      margin:0 auto 10px;
    }
    .hero h1{
      margin:4px 0 0;
      font-size:28px;
      font-weight:100;
      letter-spacing:0.06em;
    }
    .hero .sub{
      margin-top:2px;
      font-size:12px;
      color:var(--muted);
      font-weight:300;
      letter-spacing:0.08em;
    }

    /* ===== CONTENT MAIN===== */
    main{
      max-width:var(--maxw);
      margin:0 auto;
      margin-top: 20px;
      padding:10px 16px 60px;
    }

    h2 {
        border-left: 5px solid #333;
        padding-left: 10px;
    }

    section{
      background:#fff;
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      padding:20px 18px;
      margin:16px 0;
    }

    section h2{
      font-size:18px;
      font-weight:500;
      margin:0 0 12px;
      letter-spacing:0.03em;
      border-left: 5px solid #333;
      padding-left: 10px;
    }

   section p{
    font-weight:300; 
    font-size:15px;
  }


    /* greeting 2-col */
    .greeting{
      display:grid;
      grid-template-columns: 1.4fr 0.6fr;
      gap:18px;
      align-items:start;
    }
    .greeting p{
      margin:0;
      font-weight:300;
      font-size:15px;
      white-space:pre-line;
    }
    .ceo-photo{
      width:100%;
      border-radius:12px;
      box-shadow:0 4px 12px rgba(0,0,0,0.12);
      object-fit:cover;
    }

    .work p, .history ul{font-weight:300; font-size:15px; margin:0;}
    .history ul{padding-left:1.2em;}
    .history li{margin:4px 0;}

    footer{
      text-align:center;
      color:var(--muted);
      font-size:12px;
      padding:24px 10px 40px;
    }

    /* ===== MOBILE ===== */
    @media (max-width: 768px){
      .nav-wrap{
        background:transparent;           /* ハンバーガー時は背景エリア非表示 */
        box-shadow:none;
      }
      .nav-inner{
        justify-content:flex-start;
        padding:6px 10px;
      }
      .hamburger{display:block;}

      nav{
        position:absolute;
        top:48px;
        left:10px;
        right:10px;
        background:#fff;
        border-radius:14px;
        box-shadow:var(--shadow);
        padding:10px 10px;
        display:none;
      }
      nav.open{display:block;}

      nav ul{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
      }
      nav a{
        width:100%;
        padding:10px 10px;
      }

      .greeting{
        grid-template-columns:1fr;
      }
      .ceo-photo{
        max-width:320px;
        margin:0 auto;
        display:block;
      }
    }


    /* ====== ロゴ + 社名 ====== */
    .logo-area {
        text-align: center;
        margin-top: 40px;
    }
    .logo-area img {
        width: 200px;
        height: 200px;
        object-fit: contain;
    }
    .logo-area img-small {
        width: 80px;
        height: 80px;
        object-fit: contain;
    }
    .company-name {
        font-size: 28px;
        margin-top: 12px;
        font-family: "M PLUS Rounded 1c", sans-serif;
        font-weight: 300;
    }
    .company-sub {
        font-size: 14px;
        margin-top: 4px;
        font-family: "M PLUS Rounded 1c", sans-serif;
        font-weight: 3300;
    }


    /* ====== メッセージスクロール ========================================== */
.scroll-message {
  width: 100%;
  background: #f5f5f5;
  padding: 14px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

.scroll-window {
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: scrollLoop 40s linear infinite;
}

.text-block {
  display: inline-flex;
  white-space: nowrap;
  padding-right: 60px;
}

.char {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #333;
  animation: wave 1.8s ease-in-out infinite;
}

/* 横スクロール */
@keyframes scrollLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* 1文字ずつ少し動かす */
@keyframes wave {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(0px) scale(1.2);
  }
}

    /* ====== 最新トピック ========================================== */
    .topics {
        max-width: 1200px;
        margin: 50px auto;
        padding: 20 20px;
    }
.topics-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
   .topics-grid {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 10px;
    width: 100%;
    }


/* スクロールバー非表示（任意） */
.topics-grid::-webkit-scrollbar {
    display: none;
}

.topic {
    flex: 0 0 auto;   /* ← これ重要（折り返さない） */
    width: 220px;
    background: #f8f8f8;   /* ← 薄いグレー */
    border-radius: 10px;
    padding: 12px;

    text-align: center;
}

    .topic img,
    .topic video {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 6px;
     }
    .topic-title {
        font-size: 16px;
        margin-top: 10px;
    }
    .topic-sub {
        font-size: 14px;
        color: #666;
   white-space: normal;        /* ← 改行OKにする */
    word-break: break-word;     /* ← 長い単語も折る */
    }

.topics h2 {
    text-align: center;
    border-left: 0;
    margin: 0;
}

.topics-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* ボタン横並び */
.topics-controls {
    display: flex;
    gap: 8px;
}

/* ボタン */
.topics-btn {
    width: 36px;
    height: 36px;
    background: #eee;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}


/* ボタン */
.topics-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 10;
    user-select: none;
}

.topics-btn.left {
    left: 0;
}

.topics-btn.right {
    right: 0;
}


/* スマホで少し小さく */
@media (max-width:768px){
    .topics-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}
    /* ====== 過去作品横スクロール ====================================== */

 .gallery-container {
        margin-top: 50px;
        width: 100%;
        overflow: hidden;
        position: relative;
        background: #fff;
        padding: 20px 0;
}

.gallery-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
}

    .gallery-track {
        display: flex;
        gap: 20px;
        padding-left: 20px;
         width: max-content; 
    }

.gallery-item {
  flex: 0 0 auto;
  height: 150px; 
  width: 200px;  
  object-fit: cover;
  border-radius: 10px;
}


  /* 手動ボタン */
    .gallery-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-250%);
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.8);
        border-radius: 50%;
        border: 1px solid #ccc;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }
    .gallery-btn.left { left: 10px; }
    .gallery-btn.right { right: 10px; }


    .works-section {
        max-width: 1200px;
        margin: 50px auto;
        padding: 0 20px;
    }

    .works-wrapper {
        display: flex;
        align-items: center;
        position: relative;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        background: #eee;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        margin: 0 10px;
        font-size: 20px;
        user-select: none;
    }

    .works {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 10px;
        width: calc(100% - 100px);
    }

    .works::-webkit-scrollbar { display: none; }

    .work-item {
        flex: 0 0 auto;
    }

    .work-item img, .work-item video {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 6px;
    }
    .works-section h2 {
        text-align: center;
        border-left: 0;
        margin-bottom:20px;
    }




    /*--------------- ハンバーガー ---------------*/
    .menu-btn {
        display: none;
        position: absolute;
        left: 15px;
        top: 12px;
        cursor: pointer;
        font-size: 22px;
    }

    @media (max-width: 768px) {
        .navbar ul {
            display: none;
            flex-direction: column;
            background: #fff;
            border: 1px solid #ccc;
            width: 150px;
            padding: 10px;
            position: absolute;
            left: 10px;
            top: 50px;
            text-align: left;
        }

        .navbar ul.open {
            display: flex;
        }

        .menu-btn {
            display: block;
        }
    }



   /*--------------------お問合せフォーム------------------------------------------------------*/

.contact-form {
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form button {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}


/*======== Product View ========================================*/

  .meta{
    background:#fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    margin-bottom: 18px;
  }
  .meta dl{ margin:0; display:grid; grid-template-columns: 120px 1fr; row-gap:10px; column-gap:10px; }
  .meta dt{ font-weight:700; color:#444; }
  .meta dd{ margin:0; }

  .desc{
    background:#fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    margin-bottom: 22px;
    line-height: 1.8;
  }

  .pairs{
    display:flex;
    flex-direction:column;
    gap: 14px;
  }

  /* 説明1 + 写真1 の1組 */
  .pair{
    background:#fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    display:grid;
    grid-template-columns: 1fr 240px;
    gap: 14px;
    align-items: start;
  }
  .pair h3{
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
  }
  .pair p{ margin:0; line-height: 1.75; color:#333; }
  .pair figure{ margin:0; }
  .pair img{
    width: 100%;
    height: auto;
    display:block;
    border-radius: 5px;
    background:#eee;
  }
  .pair figcaption{
    margin-top: 6px;
    font-size: 12px;
    color:#666;
  }

  /* iPhoneなど */
  @media (max-width: 640px){
    .pair{ grid-template-columns: 1fr; }
  }

/* -------------------------
   プロダクト詳細　コンテンツアイテム
-------------------------- */

.detail-product-box {
    background: #fff;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

 }

/* 上段だけ横並び（ここが核心） */
.detail-product-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.detail-product-info {
  flex:1;
}

/* 画像 */
.detail-product-img{
  flex:0 0 300px;
 text-align: right;
}

.detail-product-img img{
  width:300px;
  height:300px;
  object-fit:cover;
}


.detail-section{
  margin-top: 40px;
  background:#fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 25px;
    justify-content: space-between;
}

.detail-section h3{
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}

.detail-block{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.detail-block figure{
    width: 100%;
  margin: 0;
}

.detail-block img{
  width: 100%;
  border-radius: 14px;
  display: block;
  background:#eee;
}

.detail-block video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; 
}

.detail-text p{
  margin: 0 0 12px;
  line-height: 1.8;
  color:#333;
}

@media (max-width:768px){

  .detail-product-main{
    flex-direction:column;
  }

  /* 画像を上に */
  .detail-product-img{
    order:-1;
    text-align:center;

  }
}

/* iPhone */
@media (max-width: 640px){
  .detail-block{
    grid-template-columns: 1fr;
  }
}


/* -------------------------
   プロダクト
-------------------------- */

.product-box {
    background: #fff;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

 }

/* 上段だけ横並び（ここが核心） */
.product-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.product-info {
  flex:1;
}

/* 画像 */
.product-img{
  flex:0 0 300px;
 text-align: right;
}

.product-img img,
.product-img video{
  width:300px;
  height:300px;
  object-fit:cover;
border: 1px solid #ddd;   

}

/* 下段 */
.product-price,
.product-links{
  margin-top:20px;
}

/* テーブル */
.table-wrap{
  overflow-x:auto;
}

.price-table{
  width:100%;
  border-collapse:collapse;
}

.price-table td{
  border:1px solid #ddd;
  padding:8px;
}

/* リンク */
.link-group{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}



.details-link {
    margin-top: 10px;
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.details-link:hover {
    text-decoration: underline;
}

/* =======================
   スマホ
======================= */
@media (max-width:768px){

.product-box {
    flex-direction:column;
  display:flex;
}
 .product-info{
    width:100%;
  }
  .product-img{
   order:-1;                  /* ← これで上に来る */
    text-align:center;
    flex:none;
    width:100%;
    margin-bottom:10px;  }
.product-img img{
  width:200px;
  height:200px
 
}

}


/* 価格表 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/
.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table{
  width: 100%;
  min-width: 560px; /* 狭い画面では横スクロール */
  border-collapse: collapse;
  background: #fff;
}

.price-table td{
  border: 1px solid #ccc;
  padding: 10px 12px;
  vertical-align: top;
  line-height: 1.6;
  color: #333;
}

.price-table td:nth-child(1){
  width: 120px;
  font-weight: 700;
}

.price-table td:nth-child(2){
  width: 90px;
  text-align: center;
  white-space: nowrap;
}

/* スマホ */
@media (max-width: 640px){
  .price-table{
    min-width: 520px;
  }

  .price-table td{
    font-size: 14px;
    padding: 8px 10px;
  }
}


/* 右上固定の戻るボタン */
.back-fixed{
  position: fixed;
  top: 106px;
  right: 16px;
  z-index: 2000;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 15px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.back-fixed:hover{
  transform: translateY(-1px);
}

/* iPhone等では「アイコンだけ」 */
@media (max-width: 768px){
  .back-fixed{
    padding: 10px 12px;
  }
  .back-text{
    display: none;
  }
  .back-icon{
    font-size: 18px;
    line-height: 1;
  }
}

