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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

img {
  max-width: 100%;
}

header {
  background-color: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
}
.header-inner a {
  text-decoration: none;
  color: unset;
  line-height: 1;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1c1c1c;
}

nav.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

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

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.mySlides {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in;
}

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease-in;
  text-shadow: 1px 1px 10px #666;
}

.cta {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  background-color: #ff7f50;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta:hover {
  background-color: #ff6347;
}

/* スライドショーのアニメーション */
@keyframes fade {
  0% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.mySlides:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1505294399615-2479253a4990?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.mySlides:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1607068798195-d26a9703b277?q=80&w=2694&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.mySlides:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1550668035-d00f4f6b4bc1?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}

.slideshow-container .text {
  opacity: 0;
  animation: fade 5s infinite;
}

/* アニメーション */
.text:nth-child(1) {
  animation-delay: 0s;
}

.text:nth-child(2) {
  animation-delay: 2s;
}

.text:nth-child(3) {
  animation-delay: 4s;
}

main {
  padding: 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

section {
  margin-bottom: 3rem;
}

.about-section {
  padding: 3rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.about-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.about-section .section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #222;
}

.about-section .lead {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.course-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.course-box {
  background-color: white;
  border-left: 6px solid #555;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.course-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.course-box p {
  font-size: 1rem;
  line-height: 1.6;
}

.cta-message {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.curriculum-section {
  padding: 3rem 2rem;
  background-color: #fff;
  text-align: center;
}

.curriculum-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.curriculum-section .section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #222;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.skill-item {
  background-color: #f7f9fc;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.skill-item p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* lessonセクション */
#lesson {
  background-color: #f8f8f8;
  padding: 2rem 20px;
  border-radius: 12px;
  margin-top: 40px;
}

#lesson h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

#lesson p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
  text-align: center;
}

#lesson ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

#lesson li {
  background-color: #ffffff;
  border-left: 5px solid #4caf50;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  color: #333;
}

#lesson .attention {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 5px;
}

.social-section {
  background: #f9f9f9;
  padding: 2rem 0;
  margin: 2rem 0;
  text-align: center;
}

.social-section h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-button {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-button i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.social-button.twitter {
  background: #1da1f2;
}

.social-button.facebook {
  background: #3b5998;
}

.social-button.line {
  background: #00b900;
}

#instructors {
  padding: 3rem 2rem;
  background-color: #fff;
  text-align: center;
}

#instructors h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.instructor-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.instructor-card {
  background-color: #f9f9f9;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-5px);
}

.instructor-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instructor-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 10px;
}

.instructor-card h4 {
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.instructor-card p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #666;
  text-align: left;
}

.instructor-bio a {
  color: #333;
}

/* ====== 共通 ====== */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin-bottom: 2rem;
}

#join-flow {
  padding: 2rem 1rem;
  background-color: #fafafa;
  text-align: center;
}

.flow-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.flow-card {
  flex: 1 1 250px;
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  text-align: center;
}

.flow-card:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: #9cf39f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 40px;
  height: 40px;
}

.flow-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.flow-card p {
  font-size: 0.95rem;
  color: #555;
}

#contact {
  padding: 2rem 1rem;
  background: #f9f9f9;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

#contact p {
  font-size: 0.9rem;
  padding: 0 1rem 2rem;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #109831;
}

.btn {
  background: #109831;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0 auto;
  display: block;
}

.btn:hover {
  background: #604acc;
}

.faq-section {
  background-color: #fff;
  padding: 3rem 1rem;
  margin: 2rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  background: #f9f9f9;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question[aria-expanded="true"] {
  background: #ff7f50;
  color: white;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-question span {
  color: #ff7f50;
  font-weight: bold;
  margin-right: 10px;
}

.faq-question[aria-expanded="true"] span {
  color: white;
}

.faq-question i {
  transition: transform 0.3s;
  font-size: 0.8rem;
}

.faq-answer {
  padding: 0 1.5rem;
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding: 1.5rem 0;
  margin: 0;
  line-height: 1.7;
}

.faq-answer ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

.faq-contact {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.9rem;
}

.faq-contact a {
  color: #ff7f50;
  font-weight: bold;
  text-decoration: underline;
}

#blog-preview {
  background: #fff;
  padding: 3rem 1rem;
  margin-top: 2rem;
}

#blog-preview .container {
  height: 60vh;
  overflow: scroll;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.blog-card a {
  text-decoration: none;
}

.blog-card time {
  display: block;
  padding: 0 1rem 1rem;
  color: #666;
  font-size: 0.9rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid #eee;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #ff7f50;
  color: white;
}

footer {
  padding: 2rem;
  background: #222;
  color: #fff;
  text-align: center;
}

/* モバイルナビ */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 0.7rem 0;
  border-top: 1px solid #ccc;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.mobile-nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.8rem;
  text-align: center;
}

.mobile-nav a i {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

@media (max-width: 767px) {
  header {
    padding: 0rem 2rem;
  }

  header h1 {
    font-size: 1rem;
    line-height: 45px;
  }

  .header-inner {
    justify-content: center;
  }

  nav.desktop-nav {
    display: none;
  }

  main {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .cta-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  footer {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .slideshow-container .text {
    width: 80vw;
  }

  .mySlides .text p {
    margin-bottom: 20px;
  }

  .about-section {
    padding: 2rem 1rem;
    text-align: left;
  }

  .text {
    font-size: 1.5rem;
  }

  .cta {
    font-size: 1rem;
    padding: 8px 15px;
  }

  .skill-item {
    padding: 1rem;
  }

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

  #lesson ul {
    padding: 0 10px;
  }

  #lesson li {
    font-size: 0.95rem;
  }

  .curriculum-section {
    padding: 2rem;
  }

  .instructor-card {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 2rem;
    padding: 1rem;
  }

  #instructors {
    padding: 2rem 0rem;
  }

  #instructors h2 {
    margin-bottom: 2rem;
  }

  body main section .section-title {
    margin-bottom: 2rem;
  }

  .skill-item p,
  #lesson p {
    text-align: left;
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
  }

  .social-button {
    width: 80%;
    justify-content: center;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .faq-answer p,
  .faq-answer ul {
    font-size: 0.9rem;
  }

  .sp {
    display: block;
  }
}

@media (min-width: 768px) {
  .sp {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .course-boxes {
    flex-direction: row;
  }

  .course-box {
    width: 48%;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
