@charset "utf-8";

/*-----------------------------------------------------
  Layout
-------------------------------------------------------*/
.layout {
  display: flex;
  justify-content: center;
  background-color: #f0f0f0;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Main Content - center on PC */
.main-content {
  width: 400px;
  /* Fixed mobile width on PC */
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  position: relative;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Side Menu (Left) */
.side-menu.left {
  position: fixed;
  top: 50%;
  /* Recalculate position: center - (main/2) - (menu/2 + gap) */
  left: calc(50% - 200px - 220px);
  transform: translateY(-50%);
  width: 200px;
  z-index: 5;
}

/* Hide side menu below 991px (mobile/tablet) */
@media (max-width: 991px) {
  .side-menu.left {
    display: none !important;
  }
}

.menu_logo {
  max-width: 100%;
  margin-bottom: 1rem;
}

.side-menu_text {
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.side-menu_text a {
  color: #1d1045;
  display: block;
  text-decoration: none;
}

.side-menu_text a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* Side Menu CTA Button */
.navi_cta_btn {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 10px auto;
  padding: 0.8rem 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  color: #fff !important;
  background-color: #ff8400;
  border-bottom: 5px solid #ce6b00;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

/* Shine Animation */
.navi_cta_btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  20% {
    left: 125%;
  }

  100% {
    left: 125%;
  }
}

.navi_cta_btn:hover {
  margin-top: 13px;
  /* visual offset for press effect */
  border-bottom: 2px solid #ce6b00;
  background-color: #f58f22;
  transform: none;
  /* Override standard hover transform */
}

.navi_cta_smalltext {
  font-size: 0.9rem;
}

/*-----------------------------------------------------
  Header
-------------------------------------------------------*/
#Header {
  width: 400px;
  max-width: 100%;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: top 0.3s ease;
}

#Header.hidden {
  top: -100px;
}

#Header h1.logo {
  margin: 0;
  padding-left: 10px;
}

#Header .navbar-brand {
  display: flex !important;
  align-items: center;
}

.logo-badge {
  width: 50px;
  height: 50px;
  background-color: #ffe400;
  /* Yellow */
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo-sub {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.logo-main {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}

@media (min-width: 992px) {
  #Header .navbar-collapse {
    display: none !important;
  }

  #Header .navbar-toggler {
    display: none !important;
  }

  #Header .container-fluid {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #Header {
    width: 100%;
    left: 0;
    transform: none;
  }

  .header-hidden {
    transform: translateY(-100%) !important;
  }
}

.bg-navi {
  background-color: transparent;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.nav-link {
  color: #fff !important;
  font-weight: bold;
}

/*-----------------------------------------------------
  Sections
-------------------------------------------------------*/
section {
  padding: 2rem 0;
  /* Reduced padding to fix gaps */
}

/* Remove excessive padding from FV specifically if needed */
.fv {
  padding-top: 66px !important;
  margin-top: 0 !important;
  position: relative;
}

.section_header {
  margin-bottom: 2rem;
}

/* Introduction text above comparison title */
.hikaku-intro {
  text-align: center;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hikaku-badge {
  display: inline-block;
  background-color: var(--color-primary-dark);
  color: #fff;
  padding: 3px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 5px;
  vertical-align: middle;
}

/* Speech Bubble Style for Main Title */
.hikaku_mainttl {
  display: flex;
  /* Ensure centering works */
  justify-content: center;
  position: relative;
  margin-bottom: 15px;
  padding: .8em 1.2em;
  border-radius: 50vw;
  background-color: var(--color-primary);
  width: fit-content;
  /* Don't stretch full width */
}

.hikaku_mainttl::before {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 15.5px;
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
}

/*-----------------------------------------------------
  Hikaku (Comparison) Table
-------------------------------------------------------*/
.hikaku_box {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

.hikaku_box th,
.hikaku_box td {
  padding: 0.5rem 0.2rem;
  /* Reduced padding to fit 3 cols */
  text-align: center;
  vertical-align: top;
  border: 1px solid #ddd;
  font-size: 0.8rem;
  /* Smaller font */
}

/* Headers */
.rank-col {
  position: relative;
  padding-top: 2rem !important;
  background: #f9f9f9;
  /* Ensure header border matches */
  border-bottom: 2px solid #ddd;
}

.rank-col.rank-1 {
  background: #fffde8;
  border: 3px solid #ff000c;
  border-bottom: none;
  /* Connect to cells */
  z-index: 1;
}

.rank-crown {
  position: absolute;
  top: -25px;
  /* Adjust to stick out more */
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  z-index: 10;
  /* Ensure on top */
}

.rank-img img {
  border-radius: 5px;
  border: 1px solid #eee;
  width: 80px;
  height: auto;
}

.rank-name {
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* Rows */
.header-row td {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.4rem;
  /* Make sure header row doesn't break the red border visual completely (hard with colspan) */
  /* Using box-shadow to fake the red border passing through could work but might look messy */
  position: relative;
  z-index: 2;
}

/* Cells */
.hikaku_box .cell-rank-1 {
  background: #fffde8;
  border-left: 3px solid #ff000c;
  border-right: 3px solid #ff000c;
  /* Remove default top/bottom borders between these cells to make it look continuous */
  border-top: 1px solid #ffdbdb;
  /* Light red to blend */
  border-bottom: 1px solid #ffdbdb;
}

/* Connect to header */
.rank-col.rank-1+tr .cell-rank-1 {
  border-top: none;
}

/* Bottom of Rank 1 needs red border */
tr:last-child .cell-rank-1 {
  border-bottom: 3px solid #ff000c;
}

.table-responsive {
  overflow: visible;
  /* Show crowns sticking out */
}

/* Responsive Table */
@media (max-width: 768px) {
  .hikaku_box {
    /* min-width: 600px; REMOVE min-width to avoid scroll forcing */
    width: 100%;
    table-layout: fixed;
  }
}

/*-----------------------------------------------------
  Points Section
-------------------------------------------------------*/
.point-item {
  background: #fff;
}

.point-item.bg-gray {
  background: #f4f8fb;
  border-color: #ccc;
}

/*-----------------------------------------------------
  Ranking Articles (Box01)
-------------------------------------------------------*/
.rank-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rank-title {
  position: relative;
}

.rank-content {
  border: 2px solid var(--color-primary);
  border-top: none;
}

/* Points Ribbon Style */
.points-title {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
}

.ribbon_point {
  display: inline-block;
  position: absolute;
  top: -10px;
  left: 15px;
  margin: 0;
  padding: 10px 0;
  z-index: 2;
  width: 60px;
  text-align: center;
  color: #334667;
  font-size: 13px;
  background: #fff78b;
  border-radius: 2px 0 0 0;
}

.ribbon_point:before {
  position: absolute;
  content: '';
  top: 0;
  right: -7px;
  border: none;
  border-bottom: solid 10px #19364e;
  border-right: solid 7px transparent;
}

.ribbon_point:after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  height: 0;
  width: 0;
  border-left: 30px solid #fff78b;
  border-right: 30px solid #fff78b;
  border-bottom: 10px solid transparent;
}

.points-list {
  border-radius: 5px;
}

.points-list p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  border-bottom: 1px dashed #eee;
  padding-bottom: 0.5rem;
}

.points-list p:last-child {
  border-bottom: none;
}

/*-----------------------------------------------------
  Footer
-------------------------------------------------------*/
.footer {
  padding-bottom: 5rem;
  background: #222;
  color: #aaa;
}

.footer a {
  color: #ddd;
}

.footer a:hover {
  color: #fff;
}

/*-----------------------------------------------------
  Scroll Up
-------------------------------------------------------*/
.scroll-up {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  opacity: 0.8;
}

.scroll-up a {
  display: block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  color: #333;
}

/* Fix Button (Floating CTA) */
.fix-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0;
  /* Remove padding for full width */
  z-index: 9999;
  text-align: center;
  /* Shadow for the bar itself */
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.fix-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Full Width */
  max-width: none;
  /* Remove max-width constraint inside */
  margin: 0;
  padding: 18px 0;
  /* Slightly increased padding */
  /* Vertical padding */
  background: linear-gradient(180deg, #ff6a00 0%, #ee0909 100%);
  /* Vibrant Orange-Red */
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 0;
  /* Square corners */
  border: none;
  /* Top highlight border - slightly thicker */
  box-shadow: none;
  /* Remove button shadow */
  position: relative;
  line-height: 1;
  overflow: hidden;
}

.fix-btn a:hover {
  opacity: 0.9;
  transform: none;
}

/* Shine effect */
.fix-btn a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  animation: none;
  /* Static gloss */
}

/* Emphasized Text */
.fix-label {
  display: flex;
  align-items: center;
  font-family: "Noto Sans JP", sans-serif;
  z-index: 2;
  /* Ensure text is above slant if needed */
}

.fix-crown {
  font-size: 1.4rem;
  margin-right: 5px;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}

.fix-rank {
  font-size: 1.6rem;
  color: #ffeb3b;
  /* Yellow/Gold */
  margin-right: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.fix-btn i.fa-chevron-right {
  margin-left: 10px;
  background: #fff;
  color: #ee0909;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 0.8rem;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  animation: arrowMove 1s infinite alternate;
}

/* User Voice Bubble Arrow */
.user-voice-bubble::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -9px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #f8f9fa transparent transparent;
  /* Matches bg-light */
  display: block;
  width: 0;
}

.user-voice-bubble::before {
  content: '';
  position: absolute;
  top: 19px;
  left: -11px;
  border-width: 11px 11px 11px 0;
  border-style: solid;
  border-color: transparent #dee2e6 transparent transparent;
  /* Matches border color */
  display: block;
  width: 0;
  top: 19px;
  left: -11px;
  border-width: 11px 11px 11px 0;
  border-style: solid;
  border-color: transparent #dee2e6 transparent transparent;
  /* Matches border color */
  display: block;
  width: 0;
}

@keyframes arrowMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(5px);
  }
}

/* Adjust scroll-up position so it doesn't overlap on mobile */
@media (max-width: 767px) {
  .scroll-up {
    bottom: 80px;
    /* Move up above the banner */
  }
}

@media (min-width: 768px) {
  .fix-btn {
    bottom: 0px;
    width: 400px;
    /* Match main-content width */
    left: 50%;
    transform: translateX(-50%);
    /* Center aligns with main-content */
    padding: 0;
    box-shadow: none;
    /* remove bar shadow on PC if desired, or keep it */
  }

  .fix-btn a {
    width: 100%;
    /* Fill container */
    padding: 18px 0;
    font-size: 1.3rem;
  }


}



.recommend-top1 {
  background-color: #0096cd;
  padding-top: 3rem;
  position: relative;
  clip-path: polygon(0 0, 50% 30px, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

/* Speech Bubble Tail for Inner Box */
.recommend-bubble {
  border: 2px solid #007b91;
  position: relative;
  z-index: 2;
}

.recommend-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  /* Center vertically below the box */
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 15px;
  background-color: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  /* Downward triangle */
  z-index: 10;
  border-top: 2px solid #fff;
}

/* Border effect for the tail */
.recommend-bubble::before {
  content: '';
  position: absolute;
  bottom: -18px;
  /* Slightly lower for border effect */
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  /* Slightly larger */
  height: 17px;
  background-color: #007b91;
  /* Border color */
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 9;
  z-index: 9;
}

/* Ranking Criteria Table */
.criteria-table {
  width: 100%;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.criteria-score {
  display: block;
  font-weight: bold;
  color: #c00;
  font-size: 0.9rem;
  margin-top: 5px;
}

.criteria-table th {
  background-color: #004e98;
  color: #fff;
  padding: 10px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  text-align: center;
}

.criteria-table td {
  background-color: #fff;
  padding: 5px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
  text-align: center;
  font-size: 0.6rem;
}

.criteria-table .criteria-header {
  background-color: #e9ecef;
  color: #333;
  font-weight: bold;
}

.criteria-desc-list dl {
  border: 1px solid #333;
  /* Darker border matching image */
  border-bottom: none;
  /* Last item will add bottom border */
  margin-bottom: 0;
  background: #fff;
}

.criteria-desc-list dt {
  float: none;
  width: auto;
  font-weight: normal;
  text-align: center;
  background-color: #eee;
  padding: 8px;
  border-bottom: 1px solid #333;
  margin: 0;
  color: #333;
}

.criteria-desc-list dd {
  margin-left: 0;
  padding: 10px;
  border-bottom: 1px solid #333;
  margin-bottom: 0;
}

/* Button style update to match image's header look */
#criteriaDetailsBtn {
  background-color: #eee;
  border: 1px solid #333;
  color: #333;
  font-weight: bold;
  border-radius: 0;
}

/* Icon Rotation Animation */
#criteriaDetailsBtn .fa-chevron-down {
  transition: transform 0.3s ease;
}

/*-----------------------------------------------------
  Right Side Menu (Appeal Block)
-------------------------------------------------------*/
.side-menu.right {
  position: fixed;
  top: 50%;
  left: calc(50% + 220px);
  /* Center + MainWidth/2 + Gap */
  transform: translateY(-50%);
  width: 280px;
  /* Increased for whitespace */
  z-index: 5;
}

/* Hide on smaller screens (below 992px) */
@media (max-width: 991px) {
  .side-menu.right {
    display: none !important;
  }
}

.appeal-block {
  background: #fff;
  /* Subtle diagonal split background */
  background: linear-gradient(135deg, #ffffff 50%, #f7f7f7 50%);
  border: 3px solid #ff000c;
  /* Stronger pop border */
  border-radius: 12px;
  padding: 40px 10px 20px;
  /* More top padding */
  text-align: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
  /* FLAT shadow, no blur */
  position: relative;
  /* Removed hover transform as requested */
}

/* Header as floating speech bubble overlapping top */
.appeal-header {
  position: absolute;
  top: -24px;
  /* Pull up to overlap */
  left: 50%;
  transform: translateX(-50%);
  background: #ff000c;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  /* Slightly larger base */
  padding: 8px 15px;
  border-radius: 30px;
  /* Pill shape */
  line-height: 1.2;
  white-space: nowrap;
  width: auto;
  /* Fit content naturally */
  max-width: 95%;
  /* Prevent overflow */
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
  /* FLAT shadow */
  z-index: 10;
  border: 2px solid #fff;
  /* White border for separation */
}

/* Speech bubble tail */
.appeal-header::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #ff000c transparent transparent transparent;
}

.appeal-header span.big-text {
  font-size: 1.2rem;
  /* Increased size difference */
  display: inline-block;
  vertical-align: middle;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  /* Mild depth */
}

.appeal-sub {
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
}

.appeal-body {
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.6;
  color: #333;
}

.appeal-body .highlight {
  color: #ff000c;
  font-weight: bold;
  font-size: 1.3rem;
  background: linear-gradient(transparent 60%, #fff176 60%);
  padding: 0 4px;
}

.appeal-footer {
  margin-top: 15px;
  text-align: right;
}

.appeal-link {
  font-size: 0.8rem;
  color: #888;
  text-decoration: underline;
  transition: color 0.3s;
}

.appeal-link:hover {
  color: #555;
}

/* When expanded (aria-expanded="true"), rotate 180deg to point up */
#criteriaDetailsBtn[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

@media (max-width: 768px) {

  .criteria-table th,
  .criteria-table td {
    font-size: 0.8rem;
    padding: 5px;
  }
}

/* Points Badge & List */
.points-list {
  position: relative;
}

.points-badge {
  background-color: #0096cd;
  color: #fff;
  border-radius: 50px;
  padding: 0.5rem 2.5rem;
  /* Larger padding */
  font-size: 1.1rem;
  /* Larger font */
  font-weight: bold;
  display: inline-block;
  margin: 0 auto;
  position: relative;
  /* To lift it up with margin-top if needed, or stick to d-table mx-auto */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.points-list ul li {
  padding-left: 2em;
  /* Reduced padding to keep icon inside */
  text-indent: -0.75em;
  /* User requested value */
  margin-bottom: 0.5rem;
}

/* General list indent for comparison matrix and others */
.comparison-matrix ul li {
  padding-left: 2em;
  text-indent: -1.5em;
  margin-bottom: 0.5rem;
}

.rank-content ul li {
  padding-left: 2em;
  text-indent: -0.75em;
  margin-bottom: 0.5rem;
}

/* Flow Step Images */
.flow-img img {
  border-radius: 50%;
  border: 4px solid #007b91;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}