body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #fdfdfd;
  color: #333;
}

.top-nav {
  background-color: #dfd9c9;
  padding: 5px 20px;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
  text-align: right;
}

.top-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav li {
  display: inline;
  margin-left: 20px;
}

.top-nav a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.top-nav a:hover {
  text-decoration: underline;
}

header.hero {
  background: linear-gradient(
    -8deg,
    #afa58d 0%,
    #afa58d 15%,
    #bdb299 15%,
    #bdb299 35%,
    #c7bca1 35%,
    #c7bca1 100%
  );
  padding: 0px 20px;
  text-align: center;
  border-bottom: 6px solid #dfd9c9;
}

.header-appeal {
  display: column;
  align-items: center;
  text-align: center;
}

.CoCoM-Logo-character {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.cocom-logo {
  width: 360px;
  height: 160px;
}

.cocom-character{
  width: 80px;
  height: 80px;
  transform: translateY(-10px);
}

#typed-text {
  font-family: 'PixelMplus10', monospace;
  font-weight: normal;
  font-size: 24px;
}

.caret {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
  font-weight: bold;
  font-size: 24px;
}

.appeal-text {
  transform: translateY(-20px);
}

.about-system {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf7f0;
  text-align: center;
  padding-top: 50px;
}

.about-system::before,
.about-system::after {
  content: "";
  width: 80px; /* ← 横線の長さを調整 */
  height: 1px;
  background-color: #000;
  margin: 0 12px;
}

.about-system-span {
  font-weight: bold;
  font-family: 'PixelMplus10', monospace;
  font-weight: normal;
  text-align: center;
  font-size: 24px;
}


.about-system-section {
  background-color: #faf7f0;
  display: flex;
  align-items: center; /* ✅ 高さを揃える */
  padding: 10px 50px;  /* 任意で内側の余白調整 */
  gap: 10px;     
}

.about-system-description {
  background-color: #faf7f0;
  flex: 1;
}

.about-system-images {
  flex: 1;              /* ✅ 横幅を均等に分ける */
  display: flex;
  align-items: center;  /* ✅ 画像を縦中央に揃える */
  justify-content: center;
}

.well-being-image {
  width: 100%;
  max-width: 400px;
  height: auto; /* ✅ 高さ固定ではなく自然に調整 */
}

.about-system-description h2 {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0px 0; /* 必要なら内側に余白を */
}

.about-system-description p {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0; /* 必要なら内側に余白を */
}

.functions {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf7f0;
  text-align: center;
  padding-top: 50px;
}

.functions::before,
.functions::after {
  content: "";
  width: 80px; /* ← 横線の長さを調整 */
  height: 1px;
  background-color: #000;
  margin: 0 12px;
}

.function-span {
  display: column;
  font-weight: bold;
  font-family: 'PixelMplus10', monospace;
  font-weight: normal;
  text-align: center;
  font-size: 24px;
}

.functions-title {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf7f0;
  text-align: center;
  padding-top: 20px;
}

.function-title-span {
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  text-align: center;
  font-size: 24px;
  transform: translateY(-20px);
}

.feature-reel {
  background-color: #faf7f0;
  padding: 0px 20px;
  text-align: center;
}
.reel-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}
.reel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
}
.reel-card {
  min-width: 250px;
  max-width: 250px;
  background-color: #e8e2d5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  flex-shrink: 0;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}
.reel-card img {
  width: 100%;
  height: 100px;
  border-radius: 6px;
  cursor: pointer;

  border-bottom: 2px solid #606060; /* ✅ 横線を追加 */
  padding-bottom: 10px; /* ✅ 横線と画像の間隔調整（視覚的余白） */
}
.reel-card h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}
.reel-card p {
  font-size: 14px;
  margin: 0 0 10px;
}
.reel-date {
  font-size: 12px;
  color: #888;
}
.reel-nav {
  background: #eee;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.reel-nav:hover {
  background-color: #ddd;
}
.left {
  margin-right: 10px;
}
.right {
  margin-left: 10px;
}

.rate-plan-about {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf7f0;
  text-align: center;
  padding-top: 50px;
}

.rate-plan-about::before,
.rate-plan-about::after {
  content: "";
  width: 80px; /* ← 横線の長さを調整 */
  height: 1px;
  background-color: #000;
  margin: 0 12px;
}

.rate-plan-span {
  display: column;
  font-weight: bold;
  font-family: 'PixelMplus10', monospace;
  font-weight: normal;
  text-align: center;
  font-size: 24px;
}

.rate-plan-title {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #faf7f0;
  text-align: center;
  padding-top: 20px;
}

.rate-plan-title-span {
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  text-align: center;
  font-size: 24px;
  transform: translateY(-20px);
}

.rate-guide {
  background-color: #ec8926;
  color: #fff;
  display: block;              /* 中央寄せに必要（margin:autoが効く） */
  width: fit-content;          /* テキスト幅に合わせる */
  /* 互換用のフォールバック（古いブラウザ向け・任意） */
  width: -webkit-fit-content;
  width: -moz-fit-content;

  padding: 10px 20px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  margin: 8px auto 0;          /* 左右中央 */
  transform: none;             /* タイトル直下にズレなく配置 */
  margin-bottom: 40px;
}

.rate-plan p {
  font-size: 20px;
}

.cta-button {
  background: #333;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #555;
}

section.rate-plan {
  padding: 40px 20px;
  background: #faf7f0;
}

footer {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  background: #ddd;
}

footer .legal{
  text-align: left;          /* ← フッターの center を打ち消す */
  font-size: 11.5px;
  line-height: 1.3;
  margin: 12px auto 0;
  max-width: 900px;          /* 少し狭めにして視線移動を短く */
  padding: 6px 10px;
  background: #ddd;
  border-top: 1px solid #bbb;
}

footer .legal h2 {
  font-size: 13px;
  margin: 0 0 6px;
  font-weight: 600;
  color: #333;
}

footer .legal dl{
  display: grid;
  grid-template-columns: 108px 1fr; /* ← ラベル列をさらに細く */
  column-gap: 6px;                  /* ← ラベルと内容の隙間 */
  row-gap: 4px;
  justify-items: start;             /* ← 中央寄せを防ぐ */
  align-items: start;
  margin: 0; padding: 0;
}

footer .legal dl dt,
footer .legal dl dd{
  margin: 0; padding: 0;
  float: none; width: auto;
}

footer .legal dl dt{ 
  grid-column: 1; 
  font-weight: 700; 
  text-align: right;          /* ラベルを右寄せでキワまで寄せる */
}
footer .legal dl dd{ 
  grid-column: 2; 
  text-align: left; 
}

footer .legal h2{
  font-size: 12px; 
  margin: 0 0 6px; 
  font-weight: 700; 
  color: #222;
}


.caret {
  display: inline-block;
  width: 1ch;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@font-face {
  font-family: 'PixelMplus10';
  src: url('fonts/PixelMplus10-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.image-modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  animation: zoom 0.3s ease;

  /* 削除または上書き: margin での中央寄せを使わない */
  margin: 0;
}

.image-modal.show {
  display: flex; /* 表示時だけ中央寄せ */
}

@keyframes zoom {
  from {transform: scale(0.7);}
  to {transform: scale(1);}
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.about-system-description,
.about-system-images {
  opacity: 0;
  transform: translateX(0); /* ← 明示しておくと滑らか */
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 左から右へスライドイン */
.about-system-description.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* 右から左へスライドイン */
.about-system-images.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* アニメーション開始前の位置 */
.about-system-description:not(.animate-in) {
  transform: translateX(-50px);
}
.about-system-images:not(.animate-in) {
  transform: translateX(50px);
}

.reel-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 表示アニメーション用 */
.reel-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 料金カード */
.pricing-cards{
  background: #faf7f0;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin: 10px auto 0;
  padding: 0 10px 10px;
}

.pricing-card{
  position: relative;
  background: #e8e2d5;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 4px 4px 0 #b8b2a5;
}

.pricing-card.featured{
  background: #dfd9c9;
  box-shadow: 6px 6px 0 #b8b2a5;
}

.pricing-card .badge{
  position: absolute;
  top: -10px;
  right: 12px;
  background: #ec8926;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.pricing-name{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  font-family: "Noto Sans", sans-serif;
}

.pricing-price{
  font-weight: normal;
  font-size: 28px;
  margin: 4px 0 10px;
}

.pricing-price .yen{
  font-size: 18px;
  margin-right: 2px;
}

.pricing-price .tax{
  font-size: 12px;
  margin-left: 6px;
}

.pricing-desc{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.pricing-points{
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}

footer .legal-link{
  font-size:12px;
  font-weight:600;
  color:#333;
  text-decoration:none;
  border-bottom:1px solid #666; /* 下線でリンク感を出す */
  padding-bottom:2px;
  transition:color .2s, border-color .2s;
}
footer .legal-link:hover{
  color:#000;
  border-color:#000;
}

@media screen and (max-width: 768px) {
  /* ナビゲーション（横並びを維持） */
  .top-nav {
    font-size: 12px;
    text-align: center;
  }

  .top-nav li {
    display: inline; /* ← 横並びを維持 */
    margin: 0 0px;
  }

  .top-nav ul {
    display: flex;
    justify-content: center; /* ✅ 横中央に配置 */
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  /* 他はそのまま */
  .cocom-logo {
    width: 150px;
    height: auto;
  }

  .cocom-character {
    width: 60px;
    height: 60px;
    transform: translateY(-5px);
  }

  .header-appeal {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #typed-text {
    font-family: 'PixelMplus10', monospace;
    font-weight: normal;
    font-size: 18px;
    }

  #typed-text, .caret {
    font-size: 18px;
  }

  .about-system-section {
    flex-direction: column;
    padding: 20px;
  }

  .about-system-description, .about-system-images {
    width: 100%;
  }

  .well-being-image {
    max-width: 100%;
  }

  .functions-title {
    padding-top: 10px;
  }

  .function-title-span {
    font-size: 20px;
  }

  .reel-container {
    flex-direction: column;
    align-items: center;
  }

  .reel-track {
    padding: 10px 0;
    gap: 16px;
  }

  .reel-card {
    min-width: 90%;
    max-width: 90%;
  }

  .reel-card h3 {
    font-size: 14px;
  }

  .reel-card p {
    font-size: 13px;
  }

  .reel-nav {
    display: none;
  }

  .rate-plan-title-span {
    font-size: 20px;
    transform: translateY(0);
  }

  .rate-guide {
    margin-top: 30px;
    font-size: 16px;
    padding: 8px 16px;
  }

  .guide-span {
    font-size: 18px;
  }

  .rate-plan p {
    font-size: 16px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 70%;
  }

  .pricing-cards{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px 10px;
  }
  .pricing-price{ font-size: 24px; }
  .pricing-desc{ font-size: 13px; }

  footer {
    font-size: 12px;
    padding: 10px;
  }
}
