/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  background-color: #f8f8f8;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: .08;
  margin-bottom: 20px;
  color: #222;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: .09em;
  color: #222;
  font-weight: bold;
  border-bottom: 1px solid #e5e5e5; /* 下線を追加 */
  display: inline-block; /* 下線をテキストの幅に合わせる */
  padding-bottom: 10px; /* 下線とテキストの間隔 */
}


.contact-form h2{
  font-size: 1.2rem;
}
.contact-form label{
  font-size: 0.9rem;
}

section {
  padding: 40px 80px;
}

section.header{
  margin: 80px 80px 20px 80px;
  padding: 0 0 0 40px;
  border-left: 1px solid #e5e5e5;
}
section.header h1 span{
  font-size: 1.5rem;
  display: block;
}
section.header .status {
  margin-block: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2lh 1ic;
}
section.header .status > * {
  padding-inline: 0.5ic;
  border-radius: 3px;
  background: #e63a00;
  font-size: 85%;
  color: white;
}
section.header p{
  padding-bottom: 0;
}

.key-visual img {
  width: 100%;
  height: auto;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

ul, p{
  padding-bottom: 1.5rem;
}

/* dl, dt, ddのスタイリングで、dtとddを横並びにし、それぞれの要素の上下にグレーの線を入れる設定 */
dl {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 0px 0px 40px 0px;
}

dt {
  flex-basis: 20%;
  background-color: #F5F5F5;
  font-weight: 500;
  font-family: YakuHanJP, neue-haas-grotesk-text, Koburina Gothic W6 JIS2004, sans-serif;
  color: #00001a;
  padding: 26px 10px 26px 20px;
  border-bottom: 1px solid #e5e5e5; /* #F5F5F5より少し濃いグレー */
}

dd {
  flex-basis: 80%;
  background-color: #fff;
  padding: 26px 10px 26px 20px;
  border-bottom: 1px solid #e5e5e5; /* #F5F5F5より少し濃いグレー */
}
.time-table dl {
	padding: 0;
}
.time-table dl + dl {
	border-top: 1px solid #e5e5e5;
}
.time-table :is(dt, dd) {
	padding-block: 0.5lh;
	border-bottom: 0;
}
.time-table dt {
	background: white;
}
.time-table dt + dd {
	font-weight: bolder;
	padding-bottom: 0.3lh;
}
.time-table dd + dd {
	margin-left: auto;
	padding-block: 0 0.75lh;
	font-size: 75%;
}


.speaker {
  display: flex;
  align-items: flex-start;
  margin-bottom: 45px;
}

.speaker > img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 20px;
}
.speaker .speaker-info img[src*="logo-"] {
  width: auto;
  object-fit: contain;
}

.speaker-info {
  flex: 1;
}

.speaker-info p{
  padding-bottom: 0;
  font-weight: bold;
}
.speaker-name {
  font-size: 1.25rem;
}
.speaker-title {
  font-size: 1rem;
  margin-top: 1rem;
}

.speaker-company {
  font-size: 0.9rem;
  color: #666;
}

.speaker-info p.speaker-profile{
  font-weight: normal;
}

.btn {
  display: block;
  width: fit-content;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1rem;
}


section.cta {
  padding-block: 60px;
}
section.cta .btn {
  margin-inline: auto;
  font-size: 1.25rem;
  padding: 12px 30px;
}

.contact-form {
  padding: 80px 60px;
}

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

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media (hover: hover) {
  .btn,
  button[type="submit"] {
    transition: 0.3s 0s ease;
  }
  .btn:hover,
  button[type="submit"]:hover {
    background-color: #555;
  }
}
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 40px 80px;
  font-size: 0.8rem;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
}

.main-content-left {
  flex: 1;
  padding-right: 50px;
  min-width: 0;
}

.main-content-right {
  width: 400px;
  background-color: #fafafa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}
.form-group span{
  color: #e63a00;
}

.br-pc {
  display: block;
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
  section {
    padding: 30px;
  }
  section.header{
    margin:30px 30px 0px 30px;
    border-left: 0;
    padding: 0;
  }
  section.header h1{
	  font-size: 6vw;
  }
  section.header h1 span{
    font-size: 4vw;
    margin-bottom: 0.5rem;
  }

  .speaker {
    flex-direction: column;
    text-align: center;
  }

  .speaker > img {
    margin-right: 0;
    margin-bottom: 10px;
    margin-inline: auto;
  }

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

  .main-content-left {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .main-content-right {
    width: 100%;
  }
  dt, dd {
    flex-basis: 100%;
  }
  .time-table :is(dt, dd) {
	padding-inline: 0;
  }
	.time-table dt {
		flex-basis: 20%;
	}
	.time-table dd {
		flex-basis: 80%;
	}
  .br-pc {
    display: none;
  }
}

.main-topics hr {
  margin-block: 1.5rem;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
}
.main-topics p + hr {
  margin-top: 0;
}
/* ---------- ファーストビューと申込ボタン ---------- */

/* KV画像にタイトル・日程が入っているため、h1 は画面上は隠し、検索エンジン・読み上げ向けに残す */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* KVと左端を揃えるため、左罫線とインデントは持たせない */
section.header {
  margin: 32px 80px 0 80px;
  padding: 0;
  border-left: 0;
}
.header-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  line-height: 1.4;
}
.header-lead-sub {
  color: #e63a00;
  font-weight: bold;
  font-size: 0.95rem;
}
section.key-visual {
  padding: 20px 80px 0;
}

/* KVに無い情報（同内容の注記・アーカイブ）だけを置く */
section.fv-value {
  margin: 0 80px;
  padding: 6px 0 0;
}
.fv-value-note {
  font-size: 0.8rem;
  color: #666;
  padding-bottom: 0;
}

/* 申込ボタン：赤のグラデーションと下のハードシャドウで押せる見た目にし、
   :active で沈み込ませる。中央寄せのため display は flex のまま */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: fit-content;
  background-color: #e13600;
  background-image: linear-gradient(180deg, #f4552e 0%, #d81f00 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 1rem;
  box-shadow: 0 4px 0 #9e1800, 0 6px 12px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #9e1800, 0 2px 6px rgba(0, 0, 0, 0.18);
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.85em;
  line-height: 1;
}
.btn-arrow svg {
  width: 62%;
  height: 62%;
  display: block;
}
section.cta .btn {
  margin-inline: auto;
  font-size: 1.25rem;
  padding: 16px 34px;
}
section.cta-fv {
  padding-top: 28px;
  padding-bottom: 40px;
}
section.cta-fv .btn {
  margin-top: 0;
}
section.cta-mid {
  padding-block: 20px 50px;
}
section.cta-foot {
  padding-top: 30px;
}
@media (hover: hover) {
  .btn,
  button[type="submit"] {
    transition: filter 0.2s ease, box-shadow 0.1s ease, transform 0.1s ease;
  }
  .btn:hover,
  button[type="submit"]:hover {
    background-color: #e13600;
    filter: brightness(1.08);
  }
}

/* プログラムの時間は、狭い幅でも崩れないようタイトルの上に置く */
.time-table-time {
  display: block;
  font-size: 0.85rem;
  font-weight: normal;
  color: #666;
}

/* 参加日：3日程をフォーム幅の1行に収める */
.form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  border: 0;
  min-width: 0;
}
.form-radios legend {
  padding: 0;
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: bold;
}
.form-radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-bottom: 0;
  font-weight: normal;
  white-space: nowrap;
  cursor: pointer;
}

/* PCでは申込フォームを画面に固定し、ファーストビューと同時に1画面に収める */
@media screen and (min-width: 769px) {
  .contact-form {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 18px 40px 20px;
  }
  .contact-form h2 {
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  .contact-form .form-group {
    margin-bottom: 10px;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"] {
    padding: 8px 10px;
  }
}

/* タブレット幅ではフォームの分だけ左カラムが狭く、見出し列が細くなるため縦に積む */
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .event-details dt,
  .event-details dd {
    flex-basis: 100%;
  }
}

@media screen and (max-width: 768px) {
  section.header {
    margin: 26px 20px 0 20px;
  }
  section.key-visual {
    padding: 14px 20px 0;
  }
  section.fv-value {
    margin: 0 20px;
  }
  .fv-value-note {
    font-size: 0.72rem;
    line-height: 1.5;
  }
  /* スマホでは全幅にし、端末幅に関わらずボタンの文字を折り返さない */
  section.cta {
    padding-inline: 16px;
  }
  section.cta .btn {
    width: 100%;
    font-size: clamp(0.95rem, 4.6vw, 1.25rem);
    padding: 14px 16px;
    white-space: nowrap;
  }
  section.cta-fv {
    padding-top: 22px;
  }
  /* スマホのフォーム幅では3日程が1行に収まらないため縦に並べる */
  .form-radios {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
