/* Plan Page Styles */

.areaPlan .blockRead,
.areaPlan>.cardBlockWrap,
.planBlock>.cardBlockWrap {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.planBlock .planItem {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Smooth Scroll Support */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Link Plan Section */
.linkPlan {
  margin-bottom: 0;
}

.linkPlan .cardBlock_text p {
  min-height: 35px;
}

.linkPlan .cardBlock_col3 .cardBlock_text {
  padding: 14px 13px 10px;
  border: 1px solid #dedede;
  border-top: none;
  height: 200px;
  position: relative;
}

.linkPlan .cardBlock_col3 .cardBlock_text .linkBtn a {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: block;
}

/* Plan Block Section */
.planBlock {
  margin-top: 50px;
  padding-top: 20px;
  padding-bottom: 80px;
  background-image: url(../images/bg/bg_footer.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.planItem {
  margin-bottom: 80px;
}

.planTitle {
  background-color: #c29ac6;
}

.planTitle.purple {
  background-color: #c29ac6;
}

.planTitle .bgDot {
  background-size: 10px 10px;
  padding: 20px;
}

.planTitle .bgDot p {
  color: #fff;
  font-size: 1.6em;
  text-align: center;
  margin: 0;
}

.planContent {
  background-color: #fff;
  padding: 30px;
  border: 1px solid #dedede;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.planInfo {
  margin-bottom: 30px;
  display: flex;
  align-items: stretch;
  gap: 2%;
}

.planImage {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
}

.planImageLabel {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 999px;
}

.planImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.planInfoRight {
  width: 50%;
  border-bottom: 1px dashed #dedede;
  display: flex;
  flex-direction: column;
}



.iconList {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.iconList li {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 13px;
}

.planText {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
}

.plan-appeal {
  color: #e74c3c;
  text-align: left;
}

.planText .titlered {
  color: #e74c3c;
  font-size: 24px;
  font-weight: bold;
}

.planTable {
  display: flex;
  gap: 2%;
  align-items: stretch;
  margin-bottom: 30px;
}

.planTable .fl,
.planTable .fr {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.planTable table {
  width: 100%;
  border-collapse: collapse;
  height: 100%;
}

.planTable th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: center;
  border: 1px solid #dedede;
  width: 30%;
  vertical-align: middle;
}

.planTable td {
  padding: 12px;
  border: 1px solid #dedede;
  vertical-align: middle;
  text-align: left;
}

.infoTable ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.infoTable ul li {
  font-family: 'Noto Sans JP', sans-serif;
  padding: 3px 14px;
  font-size: 12px;
  line-height: 1.6;
  background-color: #ff5e281d;
  color: #333;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.planExplanation {
  margin-bottom: 20px;
}

.planLeaflet {
  margin-bottom: 20px;
  text-align: center;
}

.plan-leaflet-link {
  margin: 0;
}

.pdflink {
  color: #4a90e2;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 700;
}

.pdflink:hover {
  color: #c94a20;
}

/* Price Styles */
.pp_price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-right: 10px;
}

.pp_discount {
  color: #e74c3c;
  font-size: 22px;
}

/* Card Block Styles */
.cardBlock {
  float: left;
  width: 31%;
  margin-bottom: 30px;
}

.cardBlock:nth-child(3n) {
  margin-right: 0;
}

.cardBlockImage {
  position: relative;
  overflow: hidden;
}

.cardBlockImage img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.cardBlockImage .redNote,
.cardBlockImage .purple,
.cardBlockImage .green,
.cardBlockImage .blue {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 10;
  background-color: #e74c3c;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
}

.cardBlockImage .purple {
  background-color: #c29ac6;
}

.cardBlockImage .green {
  background-color: #7fb069;
}

.cardBlockImage .blue {
  background-color: #4a90e2;
}

.cardBlock_text {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #dedede;
  border-top: none;
}

.cardBlock_text h3 {
  font-size: 16px;
  font-weight: bold;
  color: #4a90e2;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cardBlock_text h3.new {
  color: #c29ac6;
}

.cardBlock_text p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.plan-detail-note {
  display: block;
  padding: 13px 0 15px;
  background: url(../images/icon/icon_down.png) 50% 100% no-repeat;
  font-size: 14px;
  color: #4a90e2;
  position: relative;
  margin: 10px 0;
}

.plan-detail-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: rgba(51, 51, 51, 0.1);
}

.linkBtn a:hover {
  color: #357abd;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 10px 40px;
  background-color: #4a90e2;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #357abd;
}

.btn_blue {
  background-color: #4a90e2;
}

.btn_blue:hover {
  background-color: #357abd;
}

.tac {
  text-align: center;
}

/* Anchor Adjustment */
.anchorAd {
  display: block;
  height: 0;
  margin-top: -150px;
  padding-top: 150px;
  visibility: hidden;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .cardBlock {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .planTable {
    display: block;
  }

  .planTable .fl,
  .planTable .fr {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .planInfo {
    flex-direction: column;
  }

  .planImage {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .planInfoRight {
    width: 100%;
  }
}

/* Service Buttons Styles */
.planServiceButtons {
  overflow: hidden;
  margin-bottom: 20px;
}

.serviceButton {
  float: left;
  width: 80px;
  height: 22px;
  line-height: 22px;
  margin: 2px;
  background-color: #f2efea;
  font-size: 11px;
  color: #616161;
  text-align: center;
  letter-spacing: -0.5px;
  border: none;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.serviceButton:hover {
  background-color: #e8e5e0;
}

/* Clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Plan Subtitle Styles */
.plan-subtitle {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: left;
}

/* Responsive: 1000px, 800px, 600px, 400px */
@media (max-width: 1000px) {

  .areaPlan .blockRead,
  .areaPlan>.cardBlockWrap,
  .planBlock>.cardBlockWrap,
  .planBlock .planItem {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .planBlock {
    padding: 20px 0 60px;
  }

  .planInfo {
    flex-direction: column;
  }

  .planImage,
  .planInfoRight {
    width: 100%;
    margin-right: 0;
  }

  .planTable {
    flex-direction: column;
    gap: 12px;
  }

  .planTable .fl,
  .planTable .fr {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .planContent {
    padding: 20px 20px 30px 20px;
  }

  .planTitle .bgDot {
    padding: 16px;
  }

  .planTitle .bgDot p {
    font-size: 1.4em;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .planTable {
    margin-bottom: 0;
  }

  .cardBlock {
    width: 100%;
    margin-right: 0;
  }

  .planTable th,
  .planTable td {
    padding: 10px;
  }

  .planText {
    font-size: 13px;
  }

  .serviceButton {
    width: 32%;
  }

  .infoTable ul {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .infoTable ul li {
    padding: 3px 20px;
  }
}

@media (max-width: 400px) {
  .planTitle .bgDot p {
    font-size: 1.2em;
  }

  .planText {
    font-size: 12px;
    line-height: 1.6;
  }

  .serviceButton {
    width: 31%;
    letter-spacing: -1.5px;
  }

  .planContent {
    padding: 10px 10px 20px 10px;
  }
}