/* Reset CSS */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  color: #333333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
  display: flex;
}

/* Common Classes */
.inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SP/PC Image Display */
.sp_img_mv, .sp_img_intro, .sp_img_tokyo, .sp_img_osaka, .sp_img_nagoya, .sp_img_fukuoka {
  display: none;
}

/* Header */
header {
  background-color: #FFFFFF;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  text-align: center;
  line-height: 0;
}

header .img_logo {
  width: 121px;
  height: 36px;
}

/* Sub Heading */
.sub-heading {
  font-size: 20px;
  display: inline-block;
  position: relative;
}

.sub-heading::before,
 .sub-heading::after {
  content: "";
  width: 1.5px;
  height: 30px;
  background-color: #333;
  position: absolute;
  top: 50%;
}

.sub-heading::before {
  transform: translateY(-50%) rotate(-35deg);
  left: -15px;
}

.sub-heading::after {
  transform: translateY(-50%) rotate(35deg);
  right: -15px;
}

.cta-sub-heading {
  margin-bottom: 15px;
}

.cta-sub-heading::before,
.cta-sub-heading::after {
  background-color: #fff;
}

/* Main Visual */
.mainvisual {
  position: relative;
  padding-top: 80px;
  background-color: rgba(61, 152, 248, 0.9);
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.mainvisual .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://senshinkai-clinic.jp/wp/wp-content/themes/senshinkai_themeC/assets/templete-briefing-lp/img/pc/pc_bg_fv.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.mainvisual-content {
  padding: 50px 0;
  position: relative;
}

.mainvisual .pc_img_mv {
  max-width: 80%;
  margin-bottom: 15px;
}

.mainvisual .sp_img_mv {
  margin-bottom: 15px;
}

/* CTA List */
.cta-list {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 0 auto;
  gap: 15px;
}

.cta-list-item {
  width: 100%;
}

.cta-list-item a {
  display: block;
  padding: 15px 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

.cta-list-item:first-child a {
  background-color: #FF8C00;
  color: #FFFFFF;
  box-shadow: 0px 4px 0px 0px rgba(201, 110, 0, 1);
}

.cta-list-item:first-child a::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 46%;
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 6px solid #fff;
  border-bottom: 0;
}

.cta-list-item:last-child a {
  background-color: #FFFFFF;
  color: #FF8C00;
  border: 2px solid #FF8C00;
  box-shadow: 0px 4px 0px 0px rgba(255, 140, 0, 1);
  padding: 14px 20px;
}

.cta-list-item:last-child a::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #FF8C00;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: normal;
}

.cta-list-item a:hover {
  transform: translateY(2px);
  box-shadow: 0px 2px 0px 0px rgba(201, 110, 0, 1);
}

/* Intro Section */
.intro {
  padding-top: 60px;
  background-color: #EEF9FF;
  position: relative;
  overflow: hidden;
  background-image: url('https://senshinkai-clinic.jp/wp/wp-content/themes/senshinkai_themeC/assets/templete-briefing-lp/img/pc/pc_bg_intro.png');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.intro h2 {
  text-align: center;
  font-size: 40px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
  margin-bottom: 15px;
}

.intro h2 .accent {
  display: inline-flex;
  color: #3D9AF8;
}

.intro h2 .accent .dotted {
  position: relative;
  padding-top: .1em;
}

.intro h2 .accent .dotted::before {
  position: absolute;
  content: "";
  width: .15em;
  height: .15em;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  line-height: 1;
  background-color: #333;
}

.intro .intro-image {
  text-align: center;
  margin-bottom: -8px;
}

.intro .pc_img_intro {
  width: 547px;
  height: auto;
}

/* Solution Section */
.solution {
  padding: 60px 0;
  background-color: #EEF9FF;
  text-align: center;
}

.solution h2 .accent {
  color: #3D98F8;
}

/* Slider Styles */
.slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.slider-prev, .slider-next {
  background-color: #999;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
}

.slider-dot.active {
  background-color: #3D9AF8;
}

.solution > p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
}

.solution h2 {
  font-size: 40px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
  margin-bottom: 40px;
}

.solution ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 920px;
  margin: 0 auto 50px;
}

.solution li {
  width: 294px;
  background-color: #FFFFFF;
  border-radius: 4px;
  padding: 25px 25px 40px;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution li span {
  font-size: 24px;
  font-weight: bold;
  color: #3D9AF8;
  margin-bottom: 22px;
}

.solution li h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.3;
}

.solution li img {
  margin-bottom: 22px;
  width: auto;
  height: 90px;
}

.solution li p {
  font-size: 16px;
  font-weight: 300;
  text-align: left;
}

.explanation {
  max-width: 700px;
  margin: 0 auto;
}

.explanation-slider-heading {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.sp_img_slider-heading {
  width:  100px;
  height: 53px;
}

/* CTA Block */
.ctaBlock {
  padding: 40px 0;
  background-color: #3D98F8;
  color: #FFFFFF;
  text-align: center;
}

/* Feature Section */
.feature {
  padding: 80px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.feature > p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
}

.feature h2 {
  font-size: 40px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
  margin-bottom: 40px;
}

.feature h2 .accent {
  color: #3D98F8; 
}

.feature h3 .accent {
  color: #3D98F8; 
}

.feature h3 sup {
  font-size: 11px;
  vertical-align: text-top;
  top: .5em;
}

.feature ul {
  display: flex;
  flex-direction: column;
  max-width: 841px;
  margin: 0 auto 40px;
}

.feature li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.feature li > div {
  width: 400px;
}

.feature li .number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #3D9AF8;
  margin-bottom: 10px;
  text-align: left;
}

.feature li h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: left;
}

.feature li p {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  line-height: 1.75;
}

.feature li:nth-child(even) {
  flex-direction: row;
}

.feature li:last-child {
  margin-bottom: 0;
}

.feature .note {
  font-size: 11px;
  color: #666666;
  text-align: center;
}

/* Other Contents Section */
.otherContents {
  padding: 80px 0;
  background-color: #EEF9FF;
}

.otherContents span {
  display: block;
  font-size: 18px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 600;
  color: #3D9AF8;
  text-align: center;
}

.otherContents h2 {
  font-size: 40px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
}

/* Clinic Section */
.clinic {
  margin-bottom: 80px;
}

.clinic ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.clinic li {
  display: grid;
  background-color: #FFFFFF;
  box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.clinic li > div {
  padding: 14px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clinic li h3 {
  font-size: 24px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
}

.clinic li p {
  font-size: 13px;
  font-weight: 300;
}

/* FAQ Section */
.faq-container {
  display: block;
  max-width: 700px;
  margin: 0 auto;
}

.faq-block {
  width: 700px;
  margin: 0 auto;
}

.faq-block:first-child {
  margin-bottom: 40px;
}

.faq-heading {
  margin-bottom: 20px;
  position: relative;
}

.faq-heading::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #C3EAFF;
}

.faq-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: #3D9AF8;
}

.faq-heading h3 {
  color: #3D98F8;
  font-size: 20px;
  font-weight: 300;
  padding-bottom: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-list li {
  margin-bottom: 15px;
}

.faq-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #FFFFFF;
  border-radius: 4px;
  box-shadow: 0px 3px 0px 0px rgba(221, 221, 221, 1);
  cursor: pointer;
}

.faq-answer {
  display: none;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 0 0 4px 4px;
  margin-top: -5px;
  box-shadow: 0px 3px 0px 0px rgba(221, 221, 221, 1);
}

.faq-answer span {
    font-size: 24px;
    font-weight: bold;
    color: #FF8C00;
    margin-bottom: 0;
}

.faq-answer p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.faq-list li.active .faq-toggle {
  content: "-";
}

.faq-list li.active .faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question span {
  font-size: 24px;
  font-weight: bold;
  color: #3D9AF8;
  margin-bottom: 0;
}

.faq-question p {
  font-size: 16px;
  font-weight: 600;
}

.faq-toggle {
  width: 20px;
  height: 20px;
  background-color: #3D9AF8;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0; /* Prevent the toggle from shrinking */
}

/* Briefing Information Section */
.briefingInformation {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.briefingInformation section {
  margin-bottom: 60px;
}

.briefingInformation .english-title {
  display: block;
  font-size: 18px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 600;
  color: #3D9AF8;
  text-align: center;
  margin-bottom: 10px;
}

.briefingInformation h2 {
  font-size: 40px;
  font-family: "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", serif;
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
}

.briefingInformation table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.briefingInformation table tbody {
  border: 1px solid #ccc;
}

.briefingInformation th {
  width: 160px;
  background-color: #EEF9FF;
  padding: 10px;
  text-align: right;
  font-size: 16px;
  font-weight: 300;
  border-bottom: 1px dashed #CCCCCC;
}

.briefingInformation td {
  padding: 10px;
  text-align: left;
  font-size: 16px;
  font-weight: 300;
  border-bottom: 1px dashed #CCCCCC;
}

.briefingInformation p {
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 30px;
}

.reservation-form {
  background-color: #F5F5F5;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
}

/* Modal Window */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #FFFFFF;
  margin: 10% auto;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s;
}

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

.modal-header {
  padding: 10px;
  position: relative;
  background-color: #3D98F8;
}

.modal-header h2 {
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: normal;
  text-align: center;
  color: #FFFFFF;
}

.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -50px;
  right: -2px;
  width: 35px;
  height: 35px;
  color: #000;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close:hover {
  color: #333333;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
}

.modal-body th {
  width: 160px;
  background-color: #EEF9FF;
  padding: 15px;
  text-align: right;
  font-size: 16px;
  font-weight: 300;
  border-bottom: 1px dashed #CCCCCC;
}

.modal-body td {
  padding: 15px;
  text-align: left;
  font-size: 16px;
  font-weight: 300;
  border-bottom: 1px dashed #CCCCCC;
}

.modal-body tr:last-child th {
  border-bottom: none;
} 

.modal-body tr:last-child td {
  border-bottom: none;
} 

/* Footer */
footer {
  padding: 40px 0;
  background-color: #333333;
  color: #FFFFFF;
  text-align: center;
}

footer .img_logo {
  width: 121px;
  height: 36px;
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

footer p {
  font-size: 12px;
}

/* Media Queries */
@media screen and (max-width: 960px) {
  /* Tablet Styles */
  ul, ol {
    display: block;
  }

  .cta-list {
    display: flex;
    flex-direction: column;
  }

  .mainvisual .pc_img_mv {
    max-width: 100% !important;
  }

  .solution ul {
    display: flex;
  }

  .feature ul {
    display: block;
  }

  .feature li {
    gap: 20px;
  }

  .feature li > div {
    width: 100%;
  }

  .intro-content {
    flex-direction: column;
  }

  .intro-text, .intro-image {
    width: 100%;
  }

  .intro-image {
    margin-top: 30px;
  }

  .solution li {
    width: 100%;
    margin-bottom: 15px;
  }
  .faq-block {
    width: 100%;
  }
}

@media screen and (min-width: 481px) {
   .sp-br {
    display: none;
   }

  .solution .explanation-slider-container {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  /* Mobile Styles */
  .pc_img_mv, .pc_img_intro, .pc_img_tokyo, .pc_img_osaka, .pc_img_nagoya, .pc_img_fukuoka, .pc_img_intro, .pc_img_icl-lasik_explanation {
    display: none;
  }

  .sp_img_mv, .sp_img_intro, .sp_img_tokyo, .sp_img_osaka, .sp_img_nagoya, .sp_img_fukuoka, .sp_img_intro, .sp-br, .explanation-slider-container {
    display: block;
  }
  
  /* Modal Styles for Mobile */
  .modal-content {
    margin: 5% auto;
    width: 90%;
  }
  
  .modal-header h2 {
    font-size: 20px !important;
  }
  
  .modal-body th,
  .modal-body td {
    text-align: left;
    padding: 10px;
  }
  
  .modal-body th {
    width: 30%;
  }

  header {
    padding: 10px 0;
  }

  .mainvisual {
    padding-top: 56px;
  }

  .mainvisual-content {
    padding: 30px 0;
    position: relative;
  }

  .mainvisual .background-image {
    background-image: url('https://senshinkai-clinic.jp/wp/wp-content/themes/senshinkai_themeC/assets/templete-briefing-lp/img/sp/sp_bg_fv.jpg');
  }

  h2 {
    font-size: 32px !important;
    line-height: 1.2;
    margin-bottom: 24px !important;
  }

  .sub-heading {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 15px;
    }

  .sub-heading::before, .sub-heading::after {
    height: 30px;
  }

  .cta-list {
    flex-direction: column;
    gap: 0;
  }

  .cta-list-item {
    width: 100%;
    margin-bottom: 15px;
  }

  .ctaBlock {
    padding: 35px 0;
  }

   .intro-text, .intro-image {
    width: 78.2%;
    margin: 0 auto -8px;
  }

  .intro h2 .accent .dotted {
    position: relative;
    padding-top: .3em;
  }

  .solution ul {
    margin-bottom: 30px;
  }

  .solution li {
    width: 100%;
    margin-bottom: 15px;
  }

  .solution li span {
    margin-bottom: 15px;
  }

   .solution li:last-child {
    margin-bottom: 0;
   }

   .feature li {
    flex-direction: column !important;
    gap: 20px;
  }

   .feature li:nth-child(even) {
    flex-direction: column-reverse !important;
  }

  .clinic ul {
    gap: 15px;
  }

  .clinic li > div {
    display: block;
    text-align: center;
  }

  .faq-question {
    margin-right: 10px;
  }

  .briefingInformation th, .briefingInformation td {
    text-align: left;
  }

  .briefingInformation th {
    width: 30%;
  }

}
