@charset "UTF-8";
#header {
  position: fixed; /* 画面の左上に固定 */
  top: 25px; /* 画面の一番上 */
  left: 21px;
  width: 60px;
  height: 60px; /* ロゴのサイズに合わせる */
  z-index: 100;
  background-color: #ffffff;
  display: flex;
  padding: 5px;
  justify-content: center;
  align-items: center;
  /* メニューと線を繋げたい場合は border-right をつける */
}

#header img {
  max-width: 100%; /* 親要素(60px)からはみ出さない */
  max-height: 100%; /* 親要素(60px)からはみ出さない */
  -o-object-fit: contain;
     object-fit: contain; /* アスペクト比を保ったまま枠内に収める */
}

/* 左側のメニュー：縦書きに設定 */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh; /* 画面いっぱいの高さ */
  width: 70px;
  background-color: #ffffff;
  padding: 20px;
  z-index: 90;
  /* ★ここが重要：縦書きにする魔法のコード */
  writing-mode: vertical-rl;
  text-orientation: upright; /* 英語を立たせる */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* メニューリストの並びを整える */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* 縦書きモード中なので、flex-direction: row が「縦並び」になります */
  flex-direction: row;
  gap: 30px;
}

.nav-list li a {
  text-decoration: none;
  color: #333;
  font-family: serif; /* 明朝体にするとより「さながら」風になります */
  letter-spacing: 0.2em; /* 縦書きは字間が広いと綺麗です */
  transition: 0.3s;
}

.nav-list li a:hover {
  opacity: 0.6;
}

.main-image {
  position: relative; /* 子要素の基準点になります */
}

.main-image img {
  display: block;
  width: 100%; /* 必要に応じて調整してください */
  height: auto;
}

#logo {
  position: absolute; /* 親要素を基準に自由に動かせるようになります */
  top: 50%; /* 上から50%の位置 */
  left: 50%; /* 左から50%の位置 */
  width: 400px; /* お好みの幅に調整してください */
  height: 400px; /* お好みの高さに調整してください */
  transform: translate(-26%, -32%);
}/*# sourceMappingURL=style.css.map */

main {
  /* メニューの幅(70px) + パディング(20px * 2) = 110px */
  /* 少し余裕を持たせて調整してください */
  margin-left: 110px; 
}

.section-intro {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-items: flex-start; /* 上揃えにする */
  margin: 80px auto; /* 前後のセクションとの間隔 */
}


/* 個別に高さを調整する場合 */
.section-intro .section-title {
  height: auto;       /* 文字数に合わせて自動 */
  margin-top: 0;      /* 開始位置の調整 */
  font-size: 2.2rem;
  letter-spacing: 0.5em;
  font-family: "Noto Sans JP", sans-serif;
}

.section-intro h3 {
  align-self: flex-start; 
  margin-top: 40px;   /* 少し上を空けて段差をつける */
  font-size: 1.4rem;
  color: #666;
}

.intro-text{
  height: 500px;
}

.section-intro p {
  height: 70%;        /* 本文の長さを制限して、左へ送る */
  line-height: 2.5;   /* 行間（横のスペース） */
  letter-spacing: 0.2em;
  margin-top: 100px;  /* 本文だけ少し下げて配置（リズムを出す） */
}

.upright {
  /* 文字を垂直に立たせる設定 */
  text-orientation: upright;
  
  /* 必要に応じて、アルファベット特有の余白を調整 */
  display: inline-block;
}

.dot {
  display: inline-block;
  transform: translate(0.4em, -0.2em); /* 右に0.4文字分、上に少しずらす */
}

.process-section {
  display: flex;
  justify-content: flex-end; /* 右側に寄せる */
  gap: 40px; /* スライダーとタイトルの間の隙間 */
  padding: 20px; /* サイドメニューがある場合はここを調整 */
  height: 400px;
  background-color: #f9eaea;
}

/* スライダーを左側いっぱいに広げる */
.loop-slider {
  flex: 1; 
  overflow: hidden;
  display: flex;
  min-width: 50%;
}

/* タイトルを縦書きにする */
.process-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.8rem;
  letter-spacing: 0.4em;
  white-space: nowrap; /* 改行させない */
  font-family: serif;
  color: #333;
}
.intro-text-wrapper h3 {
  color: #666;
}

.process-content{
  padding: 20px;
}

/* スライダー内部（先ほどのコードを流用） */
.loop-slider-list {
  display: flex;
  list-style: none;
  padding: 0;
  animation: loop-scroll 20s linear infinite;
  align-items: center;
}

.loop-slider-list li {
  width: 400px; /* 画像の大きさを調整 */
  padding: 0 10px;
}

.loop-slider-list img {
  width: 100%;
  height: auto;
}

@keyframes loop-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 全体レイアウト：右にタイトル、左にメイン */
.products-section {
  display: flex;
  flex-direction: row-reverse; /* タイトルを右に */
  justify-content: center;
  align-items: flex-start;
  padding: 100px 250px;
  gap: 60px; /* タイトルと商品エリアの間隔 */
}

/* 右端の縦書きタイトル */
.side-title h2 {
  writing-mode: vertical-rl;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.8em;
  color: #333;
  position: sticky;
  top: 100px;
  height: fit-content;
  font-family: "Noto Sans JP", sans-serif;
}

/* メインコンテンツエリア */
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 100px;            /* 商品同士の間隔 */
  width: 100%;
}

.product-item {
  min-width: 320px; /* これより狭くなると自動で1カラムに */
  max-width: 450px; /* 広がりすぎ防止 */
  display: flex;
  flex-direction: column;
}
/* 各要素の余白と書体 */
.item-visual {
  margin-bottom: 50px;
  text-align: center;
}

.item-visual img {
  width: auto;
  max-height: 500px; /* 画像の大きさを調整 */
  width: 460px;
  height: 630px;
}

.item-title-box {
  display: flex;
  align-items: center; /* 上下の中央を揃える */
  gap: 20px;           /* 01と名前の間の距離 */
  margin-bottom: 20px; /* 下の文章（item-copy）との距離 */
}

/* テキスト部分の洗練 */
.item-number {
  font-family: serif;
  font-size: 1.5rem;
  margin-bottom: 0; /* 元のCSSのmarginを打ち消し */
  line-height: 1;
}

.item-number::after {
  content: "";
  display: inline-block;
  width: 1px;          /* 線の太さ */
  height: 1.5rem;      /* 線の長さ（文字より少し長めにすると綺麗です） */
  background-color: #ccc; /* 線の色（薄いグレー） */
  margin-left: 20px;   /* 番号との距離 */
  vertical-align: middle;
}

.item-name {
  font-family: serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.item-copy {
  font-size: 1rem;
  color: #666;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

/* スペック表を細い線で構成 */
.item-spec-list {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  border-top: 1px solid #eee;
}

.item-spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.item-spec-list li span:first-child {
  color: #999; /* ラベルを薄く */
}

.item-price {
  font-size: 1.1rem !important;
}

/* 購入エリア：中身を中央に寄せて横並びにする */
.order-action {
  display: flex;
  justify-content: center; /* これで中央揃えになります */
  align-items: flex-end;   /* 下端を揃えてガタつきをなくす */
  gap: 20px;               /* 数量とボタンの間の余白 */
  width: 100%;             /* 横幅いっぱいに使う */
  margin-top: 40px;        /* 上のスペック表との距離 */
}

/* 数量選択エリア */
.qty-field {
  display: flex;
  flex-direction: column;
  text-align: left;        /* ラベルは左寄せのままが綺麗 */
}

.qty-field label {
  font-size: 0.7rem;
  color: #999;
  margin-bottom: 5px;
  letter-spacing: 0.1em;
}

.qty-field select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  min-width: 70px;         /* 幅が狭すぎないように */
}

/* カートボタン：幅を固定して中央に配置 */
.cart-btn {
  flex: 0 1 250px;         /* 最大250px幅まで。必要に応じて調整してください */
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 15px 30px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: 0.3s;
}

footer{
  margin-left: 110px;
}

footer {
  text-align: center; /* すべてのテキストを中央揃えに */
  padding: 80px 20px 40px;
  background-color: #d3e3d4; /* 背景色はお好みに合わせて */
  color: #333;
}

/* リストの点を消す & 横並びにして中央へ */
.footer__list {
  list-style: none; /* リストの「・」を消す */
  padding: 0;
  margin: 0;
  display: flex;    /* 横並びにする */
  justify-content: center; /* 中央に寄せる */
  flex-wrap: wrap;  /* 画面が狭いときは折り返す */
  gap: 30px;        /* リンク同士の間隔 */
}

/* 各メニューエリアの余白 */
.footer__policy,
.footer__sns {
  margin-bottom: 40px;
}

/* リンクのデザイン */
.footer__list a {
  text-decoration: none;
  color: #666;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer__list a:hover {
  color: #000;
}

/* フッター下部（注釈とコピーライト） */
.footer__bottom {
  margin-top: 60px;
  border-top: 1px solid #eee; /* 上に細い線を入れて区切る */
  padding-top: 40px;
}

.footer__note {
  display: block;
  font-size: 0.75rem;
  color: #094906;
  line-height: 1.8;
  margin-bottom: 30px;
}

.footer__copyright {
  display: block;
  font-size: 0.7rem;
  color: #3f3e3e;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {

  *, *::before, *::after {
    box-sizing: border-box;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* 横揺れ・横スクロールを防止 */
    width: 100%;
  }

  #header {
    display: none !important;
  }

  /* メインエリアの左余白を解除 */
  main, footer {
    margin-left: 0 !important;
    grid-template-columns: 1fr; 
    width: 100%;
    margin: 0;
    padding: 0;
  }


  /* サイドメニューを上部横並びに変更 */
  .side-menu {
    position: relative; /* 固定を解除するか、上部固定にする場合は fixed のまま top:0 */
    width: 100%;
    height: auto;
    writing-mode: horizontal-tb; /* 横書きに戻す */
  }

  .nav-list {
    flex-direction: row; /* 横並び */
    justify-content: center;
    gap: 8px; /* 15pxから8pxに縮小 */
    flex-wrap: nowrap; /* 絶対に改行させない */
  }

  .nav-list li a {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }


  /* イントロセクション（縦書き）の幅調整 */
  .section-intro {
    writing-mode: horizontal-tb; /* 縦書きを解除して横書きにする */
    text-orientation: mixed;
    display: block;              /* flexを解除して縦に積む */
    padding: 60px 20px;
    margin: 0 auto;
    width: 100%;
    height: auto;                /* 高さを固定せず中身に合わせる */
    text-align: center;          /* 中央揃えで洗練された印象に */
  }

  .section-intro .section-title {
    font-size: 1.8rem;
    line-height: 1.5;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
    height: auto;
  }

  .section-intro h3 {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: #333;
    display: block; /* 縦書き用の設定をリセット */
  }

  .intro-text {
    height: auto;    /* 固定高さを解除 */
    text-align: left; /* 本文は読みやすく左寄せ（または中央） */
    max-width: 100%;
    margin: 0 auto;
  }

  .section-intro p {
    height: auto;    /* 固定高さを解除 */
    margin-top: 20px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
  }

  /* RINGO. の文字装飾のリセット */
  .upright {
    text-orientation: mixed;
    display: inline; 
    margin-bottom: 0;
  }

  .dot {
    transform: none; /* ドットの位置を通常に戻す */
    display: inline;
  }

.process-section {
  display: block;       /* flexを解除 */
  height: auto;        /* 高さを中身に合わせる */
  padding: 60px 20px;
  margin: 0;
}

/* スライダー：上に配置し、幅を画面いっぱいに */
.loop-slider {
  width: 100vw;
  margin-left: -20px;   /* 親のpadding分を外に出して全画面にする */
  margin-bottom: 40px;  /* 下のテキストとの間隔 */
  height: 250px;        /* スマホでのスライダーの高さ */
}

.loop-slider-list li {
  width: 280px;         /* スマホ向けに画像の幅を少し小さく調整 */
}

/* テキストエリア：スライダーの下に配置 */
.process-content {
  display: block;       /* 横並びを解除 */
  width: 100%;
  text-align: center;   /* 見出しを中央に */
}

/* 縦書きを解除して横書きにする */
.section-title {
  writing-mode: horizontal-tb; 
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  margin-bottom: 30px;
  text-align: center;
}

/* 本文エリア */
.intro-text-wrapper {
  text-align: left;     /* 文章は読みやすく左寄せ */
}

.intro-text-wrapper h3 {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;   /* サブ見出しも中央 */
}

.intro-text p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 0;
  height: auto;         /* PCで設定した高さをリセット */
}

  /* 商品セクションのレイアウト変更 */
  .products-section {
    flex-direction: column; /* タイトルを上に、商品を下に */
    padding: 50px 20px;
    gap: 30px;
  }

  .side-title h2 {
    writing-mode: horizontal-tb; /* タイトルを横書きに */
    position: static;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
  }

  .main-content {
    grid-template-columns: 1fr; /* 2列から1列へ */
    gap: 60px;
  }

  .product-item {
    width: 100%;
    max-width: 100%;
    align-items: center; /* 商品を中央寄せに */
  }

  /* 商品画像サイズの調整 */
  .item-visual {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    text-align: center;
  }

  .item-visual img {
    width: 100% !important;  /* 親の幅（画面幅）に合わせる */
    height: auto !important;
    max-height: 400px;
  }

  /* 商品名の横並び（01 | 名前）のサイズ調整 */
  .item-title-box {
    justify-content: center;
    gap: 10px;
  }

  .item-name {
    font-size: 1.4rem;
  }

  .item-copy {
    text-align: center;
    margin-bottom: 30px;
  }

  /* 購入エリアをスマホでも横並び維持、または幅調整 */
  .order-action {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .cart-btn {
    padding: 12px 10px;
    font-size: 0.9rem;
  }

  /* フッターの余白調整 */
  footer {
    padding: 50px 20px;
  }

  .footer__list {
    gap: 15px;
  }
}