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

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Thema */
.thema {
  padding: 40px 20px 80px 20px;
  box-sizing: border-box;
}

.section-heading {
  text-align: center;
  margin: 0;
  padding: 60px 0;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.3;
  color: #000;
  letter-spacing: 2px;
  margin: 0 0 8px;
}

.section-sub-title {
  font-weight: 700;
  font-size: clamp(10px, 5vw, 16px);
  color: #333;
  line-height: 1;
  margin: 0;
}

.thema-content {
  display: grid;
  place-items: center;
  gap: 24px;
  padding-bottom: 60px;
}

.thema-content p {
  text-align: left;
  margin: 0;
}

.thema-heading-text {
  text-align: left;
  margin: 0;
}

.thema-heading-text h3 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.3;
  font-weight: 700;
  color: #7fbbac;
  margin: 50px 10px;
}

.thema-heading-text p {
  font-size: clamp(14px, 4vw, 20px);
  text-align: center;
  line-height: 1.4;
  margin-top: 10px;
  display: block;
}

.thema-visual {
  position: relative;
  width: 100%;
  max-width: clamp(280px, 60vw, 400px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
}

.thema-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.question-icon {
  position: absolute;
  top: 50px;
  left: -20px;
  width: 120px;
  height: auto;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.question-icon.show {
  opacity: 1;
  transform: translateY(0);
}

.speaker-info {
  display: flex;
  flex-direction: column;
  margin-top: 22px;
}

/* Notice */
.notice {
  padding: 120px 20px;
  background: #fff;
  position: relative;
  overflow: hidden;
  color: #000;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 20px;
}

.notice-text {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.notice-text p {
  margin: 0.6em auto 0;
}

.notice-heading-text {
  text-align: left;
  font-size: 24px;
  font-weight: bold;
  color: #952433;
  margin-top: 30px;
}

/* CoC */
.coc-content {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 20px;
}

.coc-text {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.coc-text a {
  color: #7badaf;
}

.coc-text p {
  margin: 2em auto 0;
}

/* Support */
.support-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-bottom: 80px;
}

.support-card img {
  border-radius: 12px;
  border: 1px solid #ccc;
  width: 200px;
  height: 200px;
}

.support-card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  transition: opacity 0.8s ease;
}

.support-card a:hover {
  opacity: 0.5;
}

.support-info {
  font-weight: bold;
  font-size: 20px;
  color: #000;
  line-height: 20px;
  margin-bottom: 20px;
}

/* KEYNOTE */
.keynote-speakers {
  background-color: #952433;
  padding: 80px 20px;
  box-sizing: border-box;
}

.keynote-heading {
  text-align: center;
  margin-bottom: 60px;
}

.keynote-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: #ffffff;
  letter-spacing: 2px;
}

.keynote-sub-title {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

/* Speaker */
.speakers-section {
  width: 100%;
  height: auto;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
}

.speaker-card {
  width: 350px;
  padding: 0 20px;
}

.speaker-card img {
  border-radius: 12px;
  width: 200px;
  height: 200px;
}

.speaker-info p {
  color: #ffffff;
  font-size: 14px;
}

.speaker-name {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 26px;
  margin-bottom: 10px;
}

/* Social Share */
.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.3);
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-icon.x {
  background-image: url("../images/common/x.svg");
}

.social-icon.github {
  background-image: url("../images/common/github.svg");
}

/* team */
.teams {
  margin-top: 60px;
  padding: 80px 20px 80px;
  width: 100%;
  box-sizing: border-box;
  background-color: #952433;
}

.team-speakers .container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.team-heading {
  text-align: center;
  margin-bottom: 60px;
}

.team-heading-left {
  text-align: left;
  margin: 50px 0;
}

.team-title {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 48px;
  color: #fff;
  letter-spacing: 2px;
}

.team-title-left {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 36px;
  color: #fff;
  letter-spacing: 2px;
}

.team-sub-title {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  line-height: 16px;
  margin-bottom: 5px;
}

.teams-section {
  width: 100%;
  height: auto;
  position: relative;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

.team-card {
  width: 100%;
  max-width: 280px;
}

.team-card > img {
  border-radius: 12px;
  width: 200px;
  height: 200px;
}

.team-info p {
  color: #fff;
  font-size: 14px;
}

.team-name {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.team-name .name {
  font-size: 22px;
}

@media (max-width: 930px) {
  /* Teams intermediate breakpoint */
  .teams-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .team-card {
    max-width: 260px;
  }

  .team-card > img {
    width: 190px;
    height: 190px;
  }

  /* Fix social icon sizes for 3-column layout */
  .teams .social-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  /* Thema max-width: 768px */
  .thema-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }

  .thema-visual {
    width: 100%;
    max-width: clamp(240px, 80vw, 320px);
    min-width: 0;
  }

  .thema-heading-text {
    text-align: center;
  }

  .thema-logo {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
  }

  .question-icon {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 18%;
  }

  /* Keynote max-width: 768px */
  .keynote-speakers {
    padding: 70px 30px;
  }

  .keynote-title {
    font-size: 36px;
  }

  .speaker-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 12px;
  }

  .speaker-card img {
    object-fit: cover;
    display: block;
  }

  .social-icons {
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .speakers-section {
    gap: 40px;
    min-height: 400px;
    flex-direction: column;
  }

  .speaker-name {
    display: flex;
    justify-content: center;
  }

  .speaker-name .name {
    display: inline-block;
    font-size: 22px;
  }

  /* Notice and CoC max-width: 768px */
  .notice-content {
    padding: 0 15px;
    gap: 40px;
  }

  .notice-text {
    max-width: 100%;
  }

  .notice-text p {
    margin: 1.2em auto 0;
    line-height: 1.6;
  }

  .notice-heading-text {
    font-size: 22px;
    text-align: left;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #952433;
  }

  .coc-content {
    padding: 0 15px;
    gap: 40px;
  }

  .coc-text {
    max-width: 100%;
  }

  .coc-text p {
    margin: 1.5em auto 0;
    line-height: 1.7;
    font-size: 16px;
  }

  .coc-text a {
    word-break: break-all;
  }

  /* Teams max-width: 768px */
  .teams {
    padding: 60px 15px;
  }

  .team-heading {
    margin-bottom: 40px;
  }

  .team-title {
    font-size: 36px;
  }

  .team-title-left {
    font-size: 28px;
  }

  .team-sub-title {
    font-size: 14px;
  }

  .teams-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-card {
    max-width: 250px;
  }

  .team-card > img {
    width: 180px;
    height: 180px;
  }

  .team-name .name {
    font-size: 20px;
  }

  .team-heading-left {
    margin: 25px 0 20px 0;
  }

  /* Fix social icon sizes for teams */
  .teams .social-icon {
    width: 24px;
    height: 24px;
  }

  /* Center align social icons for teams */
  .teams .social-icons {
    justify-content: center;
  }

  /* Center align team info for teams */
  .teams .team-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Thema max-width: 480px */
  .section-heading {
    padding: 30px 0;
  }

  .thema-logo {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
  }

  .question-icon {
    position: absolute;
    top: 10%;
    left: 0%;
    width: 20%;
  }

  .thema-heading-text h3 {
    margin: 10px;
  }

  .thema-heading-text p {
    margin-top: 20px;
  }

  .thema-visual {
    margin-top: 20px;
  }

  /* Keynote max-width: 480px */
  .keynote-title {
    font-size: 32px;
  }

  .speaker-name .name {
    font-size: 20px;
  }

  /* Social-icons max-width: 480px */
  .social-icons {
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  /* Keynote section max-width: 480px */
  .keynote-speakers {
    padding: 40px 20px;
  }

  .speakers-section {
    gap: 30px;
    min-height: auto;
  }

  .speaker-card {
    width: 280px;
    max-width: 100%;
  }

  .speaker-name .name {
    font-size: 20px;
  }

  /* Notice and CoC max-width: 480px */
  .notice-content {
    padding: 0 10px;
    gap: 20px;
  }

  .notice-heading-text {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #952433;
  }

  .notice-text p {
    margin: 0.8em auto 0;
    line-height: 1.5;
    font-size: 14px;
  }

  .coc-content {
    padding: 0 10px;
    gap: 20px;
  }

  .coc-text p {
    margin: 1.2em auto 0;
    line-height: 1.6;
    font-size: 14px;
  }

  .coc-text a {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Teams max-width: 480px */
  .teams {
    padding: 40px 10px;
  }

  .team-heading {
    margin-bottom: 30px;
  }

  .team-title {
    font-size: 28px;
  }

  .team-title-left {
    font-size: 22px;
  }

  .team-sub-title {
    font-size: 12px;
  }

  .teams-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .team-card {
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-card > img {
    width: 160px;
    height: 160px;
  }

  .team-name .name {
    font-size: 18px;
  }

  .team-heading-left {
    margin: 20px 0 15px 0;
    text-align: center;
  }

  /* Fix social icon sizes for teams on mobile */
  .teams .social-icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 769px) {
  /* PC表示: テーマセクションを横並びにする */
  .thema-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .thema-heading-text {
    text-align: left;
    flex: 0 0 auto;
    width: 50%;
    padding-right: 20px;
  }

  .thema-content p {
    text-align: left;
  }

  .thema-visual {
    flex: 0 0 auto;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  /* この範囲だけに適用されるスタイル */
  .question-icon {
    top: 10%;
    left: 0%;
    width: 80px;
  }

  .social-icons {
    justify-content: center;
  }
}
