* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #f8fafc;
  color: #222;
}

/* h1/pに変更しても余白が増えないように */
.main-title,
.main-subtitle {
  margin: 0;
}

.top-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 32px;
  padding: 0 16px;
  background-image: url('assets/top page image.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #000000;
}

.title-background {
  padding: 35px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.65);
}

.main-title {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

.main-subtitle {
  text-align: center;
  font-size: 16px;
}

@media (max-width: 767px) {
  .main-title {
    font-size: 22px;
  }

  .main-subtitle {
    font-size: 16px;
  }
}



.site-content {
}


.hero {
  text-align: center;
  padding: 80px 16px 60px;
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
}

#text-only {
  background: #ffffff;
}

#solution {
  background: #ffffff;
}

#challenges {
  background: #ffffff;
}

#merits {
  background: linear-gradient(to bottom, #f1f5f9, #ffffff);
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 16px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7;
  margin-bottom: 16px;
}

#challenge-badge {
  background: #fce0e0;
  color: #c60505;
}

.title {
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 24px;
  color: #0284c7;
  text-align: center;
}

.title span {
  display: block;
  font-size: 20px;
  color: #000000;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #4ca9f5;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

/*Features Section with cards*/
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

#two-cards {
  grid-template-columns: repeat(2, 1fr);
}


@media (max-width: 767px) {
  #two-cards {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-15px);
}

.feature-card img {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  object-fit: cover;
  margin: auto;
  align-content: center;
  align-items: center;
}

.icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.icon img {
  width: 75px;
  height: 75px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 767px) {
  .title {
    font-size: 24px;
  }

  .title span {
    font-size: 16px;
  }

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




/*Product Info section*/
.product-info-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 16px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 32px;
}

.product-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #555;
}

.info-value {
  color: #111;
}

@media (max-width: 767px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-label {
    font-size: 13px;
    color: #777;
  }

  .info-value {
    font-size: 15px;
  }
}



/*Tabs Section*/
.tabs-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 16px;
  position: relative;
}

.tabs-section input {
  display: none;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

#tabs-color {
  color: #000000;
}

.tab {
  padding: 12px 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#tab1:checked ~ .tabs label[for="tab1"],
#tab2:checked ~ .tabs label[for="tab2"] {
  background: #4ca9f5;
  color: #fff;
  box-shadow: 0 8px 20px rgba(76,169,245,0.3);
}

.tab-contents {
  position: relative;
}

.tab-content {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.tab-content p {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  animation: fadeSlide 0.35s ease;
}

#tab1:checked ~ .tab-contents .content-1 {
  display: block;
}

#tab2:checked ~ .tab-contents .content-2 {
  display: block;
}

.tab-content h2 {
  margin-bottom: 16px;
  color: #0284c7;
  text-align: center;
}

.tab-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 767px) {
  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .tab-content {
    padding: 28px 20px;
  }
}



/*Table Section*/
.table-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 16px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.table-wrapper tr th img {
  width: 100px;
  height: 100px;
}

.equal-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.equal-table th,
.equal-table td {
  width: 25%;
  padding: 16px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.equal-table thead {
  background: #f8fafc;
}

.equal-table th {
  font-weight: 600;
  color: #333;
  text-align: center;
}

.equal-table tbody tr {
  border-top: 1px solid #eee;
}

.clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

@media (max-width: 767px) {
  .table-section .title::after {
    content: "← スクロール →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #ff5f5f;
    margin-top: 8px;
  }
  .clamp {
    -webkit-line-clamp: 5;
  }
}



/*Steps Section*/
.steps-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  text-align: center;

  transition:
  transform 0.3s ease,
  box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-15px);
}

.step-card img {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  margin: auto;
  align-content: center;
  align-items: center;
}

.step-card h3 {
  font-size: 16px;
  text-align: center;
}

.step-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

@media (max-width: 1023px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}



/*Simulation Section*/
.simulation-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 16px;
}

.simulation-section input[type="radio"] {
  display: none;
}

.sim-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.sim-tab {
  padding: 10px 24px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#sim-hotel:checked ~ .sim-tabs label[for="sim-hotel"],
#sim-tour:checked ~ .sim-tabs label[for="sim-tour"] {
  background: #4ca9f5;
  color: #fff;
  box-shadow: 0 6px 18px rgba(99,102,241,0.3);
}

.simulation-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.sim-content {
  display: none;
}

#sim-hotel:checked ~ .simulation-box .sim-hotel {
  display: grid;
}

#sim-tour:checked ~ .simulation-box .sim-tour {
  display: grid;
}

.sim-content {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sim-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.sim-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.sim-group input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.sim-btn {
  margin-top: 12px;
  width: 100%;
  padding: 14px;
  background: #4ca9f5;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.sim-result {
  text-align: center;
}

.bar-chart {
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}

.bar {
  width: 48px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  font-size: 12px;
}

.bar-base {
  height: 55%;
  background: #e5e7eb;
}

.bar-after {
  height: 85%;
  background: #4ca9f5;
  color: #fff;
}

.sim-note {
  margin-top: 16px;
  font-size: 12px;
  text-align: center;
  color: #777;
}

@media (max-width: 767px) {
  .sim-content {
    grid-template-columns: 1fr;
  }

  .simulation-box {
    padding: 28px 20px;
  }
}




/*Form Section*/
.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 16px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 8px;
}

.section-desc {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

.contact-form {
  background: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: border 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4ca9f5;
}

.submit-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: #4ca9f5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.3);
}

@media (max-width: 767px) {
  .contact-form {
    padding: 28px 20px;
  }
}

/* =========================
   Simulation Chart Responsive
   ========================= */

/* chartが親幅を超えないように */
.sim-result {
  min-width: 0;
}

/* bar-chart 自体を可変にする */
.bar-chart {
  width: 100%;
  max-width: 100%;
  justify-content: space-between; /* 中央寄せ→均等配置 */
  gap: 12px;                      /* PCでも少し詰める */
  flex-wrap: nowrap;              /* 折り返しはしない（見栄え優先） */
}

/* barを固定48px→可変に（スマホで縮む） */
.bar {
  width: auto;                    /* 固定幅解除 */
  flex: 1 1 0;                    /* 本数に応じて均等割り */
  min-width: 40px;                /* 最低限の視認性 */
  max-width: 56px;                /* PCで太くなり過ぎない */
}

/* ラベルの折返し・詰め（小さな画面向け） */
.bar span {
  padding: 0 2px;
  word-break: keep-all;
}

/* スマホ最適化 */
@media (max-width: 767px) {
  .bar-chart {
    gap: 6px;                     /* さらに詰める */
    height: 160px;                /* 少し低く */
  }

  .bar {
    min-width: 30px;              /* 6本が入るように */
    border-radius: 6px 6px 0 0;
    padding-bottom: 6px;
    font-size: 10px;              /* ラベル文字を小さく */
  }

  .bar span {
    line-height: 1.15;
  }
}

/* 超小型端末（iPhone SE等） */
@media (max-width: 360px) {
  .bar-chart { gap: 4px; }
  .bar { min-width: 26px; font-size: 9px; }
}

/* privacy consent */
.privacy-consent {
  margin-top: 4px;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  line-height: 1.6;
}

.privacy-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #4ca9f5;
}

.privacy-label a {
  color: #0284c7;
  text-decoration: underline;
}




/* Footer Section */
.footer {
  background: #111;
  color: #eee;
  padding: 3rem 2rem 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  animation: fadeUp 0.8s ease forwards;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand h2 {
  margin: 0;
  font-size: 1rem;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-brand img {
  width: auto;
  max-width: none;
  height: 75px;
}

.footer-links a {
  display: inline-block;
  color: #ccc;
  text-decoration: none;
  margin: 0 0.75rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.footer-social a {
  font-size: 1.3rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.1);
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #222;
  padding-top: 1rem;
}

.footer-bottom a {
  text-decoration: none;
  color: #777;
  transition: color 0.3s ease, font-size 0.3s ease, transform 0.3s ease;
}

.footer-social img {
  width: 35px;
  height: auto;
}

.footer-bottom a:hover {
  color: #4ca9f5;
  transform: scale(1.1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }

  .footer-social {
    margin-top: 1rem;
  }
}
