:root {
  --main-color: #f38200;
  --main-hover: #d97400;
  --accent-color: #ffd8a1;
  --bg-color: #fffaf4;
  --text-main: #333333;
  --text-light: #666666;
  --border-color: #e6e6e6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* Base Wrapper */
.mikan-lp-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  font-size: 16px;
}

/* Character img */
.char-img {
  width: 50px;
  display: block;
  opacity: 0.95;
}

/* Section Common */
.lp-section {
  padding: 60px 4%;
}

.lp-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 40px;
  position: relative;
}

.lp-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--main-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.lp-bg-light {
  background-color: var(--bg-color);
}

/* CTA Button */
.cta-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.cta-btn {
  display: inline-block;
  border: solid 1px #f38200;
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  padding: 18px 40px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(243, 130, 0, 0.3);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(243, 130, 0, 0.5);
  color: var(--main-color);
  line-height: 25px;
}

/* 1. First View */
.fv-section {
  position: relative;
  text-align: center;
  padding: 60px 4% 80px;
  background-color: var(--accent-color);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.fv-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--main-color);
  margin-bottom: 20px;
  line-height: 1.4;
}

.fv-sub {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 40px;
}

.fv-char {
  position: absolute;
  bottom: 15px;
  left: 5%;
  width: 59px;
  opacity: 0.95;
}

/* 2. Benefit */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  padding: 30px;
  gap: 30px;
  margin: 10px 0;
}

.benefit-image {
  flex: 0 0 45%;
  border-radius: 8px;
  overflow: hidden;
}

.benefit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.benefit-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--main-color);
  line-height: 1;
}

.benefit-text h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--main-color);
}

.benefit-text p {
  color: var(--text-light);
}

.benefit-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* 3. Products */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

@media screen and (max-width: 500px) {
  .product-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .product-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-tabs .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.tab-btn {
  background-color: #eee;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

@media screen and (max-width: 500px) {
  .tab-btn {
    font-size: 12px;
  }
}


.tab-btn.active {
  background-color: var(--main-color);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Sub Tabs */
.sub-tab-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sub-tab-btn {
  background-color: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  padding: 8px 25px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.sub-tab-btn.active,
.sub-tab-btn:hover {
  background-color: var(--main-color);
  color: var(--white);
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

.swiper {
  width: 100%;
  padding-bottom: 40px !important;
}

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  height: 100%;
}

.product-card img {
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
  width: 100%;
}

.product-card .p-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  height: 40px;
  overflow: hidden;
}

.product-card .p-price {
  color: var(--main-color);
  font-weight: bold;
  font-size: 16px;
}

/* Ranking Icon */
.rank-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #666;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: 2px solid #fff;
  letter-spacing: 0.05em;
}

.rank-icon.rank-1 {
  background: linear-gradient(135deg, #fcecae, #f2b700);
  color: #a67c00;
  width: 56px;
  height: 56px;
  font-size: 18px;
  top: 0;
  left: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rank-icon.rank-2 {
  background: linear-gradient(135deg, #e6e6e6, #a8a8a8);
  color: #444;
  width: 50px;
  height: 50px;
  font-size: 16px;
  top: 0;
  left: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rank-icon.rank-3 {
  background: linear-gradient(135deg, #f0c5a3, #cd7f32);
  color: #7b4a1b;
  width: 50px;
  height: 50px;
  font-size: 16px;
  top: 0;
  left: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Category links */
.category-links {
  margin-top: 50px;
}

.category-links h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.cat-link {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--main-color);
  color: var(--main-color);
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.cat-link:hover {
  background-color: var(--main-color);
  color: var(--white);
}

.cat-banner {
  display: block;
  background-color: #e5f4e7;
  color: #2d8a3e;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  border: 2px solid #2d8a3e;
}

/* 4. Scenes */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scene-card {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.scene-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scene-card h4 {
  color: var(--main-color);
  font-size: 18px;
  margin-bottom: 15px;
}

/* 5. Story */
.story-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--accent-color);
  display: flex;
  gap: 30px;
  align-items: center;
}

.story-image {
  flex: 0 0 45%;
  border-radius: 8px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-content {
  flex: 1;
}

.story-box h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--main-color);
}

.story-box p {
  margin-bottom: 15px;
}

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background: var(--white);
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: left;
}

.compare-table th {
  background-color: var(--bg-color);
  width: 25%;
}

.compare-table th.highlight,
.compare-table td.highlight {
  background-color: var(--accent-color);
  font-weight: bold;
}

.compare-table .highlight {
  color: #b75e00;
}

/* Chart */
.chart-wrapper-iframe {
  width: 100%;
  height: 600px;
  border: none;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

/* Accordion Q&A */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qa-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--white);
  overflow: hidden;
}

.qa-title {
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  background-color: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qa-title::after {
  content: '+';
  font-size: 24px;
  color: var(--main-color);
  transition: 0.3s;
}

.qa-item.open .qa-title::after {
  transform: rotate(45deg);
}

.qa-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.qa-item.open .qa-content {
  padding: 20px;
  max-height: 500px;
}

/* 6. Closing */
.closing-section {
  text-align: center;
}

.closing-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.award-box {
  background: var(--white);
  border: 2px solid #e5c158;
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 30px;
  font-weight: bold;
  color: #b48d1c;
}

.re-benefit {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.re-benefit p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .fv-title {
    font-size: 24px;
  }

  .fv-sub {
    font-size: 16px;
  }

  .fv-char {
    width: 80px;
    right: 5%;
    bottom: 10px;
  }

  .benefit-item {
    flex-direction: column !important;
    text-align: center;
    gap: 15px;
  }

  .benefit-image {
    flex: none;
    width: 100%;
  }

  .story-box {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .story-image {
    flex: none;
    width: 100%;
  }

  .story-content h4 {
    text-align: left;
  }

  .story-content p {
    text-align: left;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  /* compare-tableは左右比較を維持するため縦積みにしない */

  .chart-wrapper-iframe {
    height: 700px;
    /* Adjust for mobile chart if needed */
  }
}


.swiper {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  /* Grid表示のための最低限のCSS調整 */
  box-sizing: border-box;
}

.swiper-slide {
  height: calc((100% - 15px) / 2) !important;
  /* PC時に2行にするための高さ */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .swiper-slide {
    height: auto !important;
    /* スマホ時は1行なので自動高さ */
  }
}

/* ジュース種類チャート CSS */
.juice-flavor-chart {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 40px auto 60px;
  background: #fffaf4;
  border: 2px solid #e95513;
  /* var(--accent-color) 代用 */
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.jf-axis-x {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #d94a00;
  opacity: 0.3;
}

.jf-axis-y {
  position: absolute;
  left: 50%;
  top: 5%;
  bottom: 5%;
  width: 2px;
  background: #d94a00;
  opacity: 0.3;
}

.jf-label {
  position: absolute;
  font-weight: 900;
  color: #d94a00;
  font-size: 16px;
  background: #fffaf4;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 5;
  white-space: nowrap;
}

.jf-label.top {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.jf-label.bottom {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.jf-label.left {
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.jf-label.left {
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* right ラベルの基本スタイル（全幅共通） */
.jf-label.right {
  right: 0%;
  top: 50%;
  transform: translate(50%, -50%);
}

/* フレーバーチャート各アイテムの基本スタイル */
.jf-item {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 8%;
  /* ボトルの基準幅。コンテナに対してレスポンシブ */
  min-width: 35px;
  max-width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.jf-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jf-item:hover,
.jf-item.active {
  z-index: 30;
}

.jf-item:hover .jf-img,
.jf-item.active .jf-img {
  transform: scale(1.3) translateY(-10px);
}

.jf-name {
  font-size: 11px;
  font-weight: bold;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  text-align: center;
  transition: all 0.3s ease;
}

.jf-item:hover .jf-name,
.jf-item.active .jf-name {
  background: #d94a00;
  color: #fff;
  transform: translateY(-5px);
}

.jf-tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 200px;
  background: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 2px solid #d94a00;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
  text-align: left;
  font-weight: normal;
}

/* ツールチップの下部三角形 */
.jf-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #d94a00 transparent transparent transparent;
}

.jf-item:hover .jf-tooltip,
.jf-item.active .jf-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* モバイル（500px以下）専用の調整 */
@media screen and (max-width: 500px) {
  .juice-flavor-chart {
    left: 4%;
    width: 95%;
    margin: 30px auto 40px;
  }

  .jf-item {
    width: 12%;
  }

  .jf-name {
    font-size: 9px;
    padding: 1px 4px;
  }

  .jf-tooltip {
    width: 150px;
    font-size: 11px;
    padding: 8px;
  }

  /* 比較表：500px以下でも左右2列比較を維持 */
  .compare-table {
    display: table;
    table-layout: fixed;
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    display: table-cell;
    padding: 8px 6px;
    word-break: break-all;
  }

  /* 項目名列（左端のth）を少し狭くする */
  .compare-table tr th:first-child {
    width: 22%;
    font-size: 11px;
  }
}