/* リセットCSS */
/* 使用したリセットCSS→https://www.joshwcomeau.com/css/custom-css-reset/#the-css-reset-1 */
/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

/* 変数 */
:root {
  /* フォントカラー */
  --bg-dark-brown: #3e2e2e;
  --header-pink: #d88e95;
  --btn-green: #2d5a27;
  --main-bg-beige: #fff9f0;
  --accent-pink: #f2b7c0;
  --text-color: #3e2723;
  --form-label-brown: #dccbba;
  --form-submit-brown: #a67c5b;
  --form-mail-brown: #8b5a2b;
  --form-border-color: #a0522d;
  /* フォントサイズ */
  /* 基本サイズ */
  --font-size-normal: 18px;
  /* ヘッダー */
  --font-size-logo: 56px;
  --font-size-header-nav: 40px;
  /* ボタン */
  --font-size-btn-action: 24px;
  /* サイドバー */
  --font-size-left-sidebar: 18px;
  --font-size-right-sidebar: 26px;
  --font-size-sns-name: 10px;
  /* ヒーローセクション */
  --font-size-hero-title: 56px;
  /* セクションタイトル */
  --font-size-section-var: 16px;
  /* コース紹介 */
  --font-size-course-item-sec-title: 20px;
  /* 講師紹介 */
  --font-size-teachercard-name: 20px;
  --font-size-teacher-role: 16px;
  /* 受講者の声 */
  --font-size-voice-title: 20px;
  /* フォーム誘導 */
  --font-size-arrow: 20px;
  /* フォーム */
  --font-size-form-title: 18px;
  --font-size-form-desc: 16px;
  --font-size-form-label: 13px;
  --font-size-form-input: 15px;
  /* フッター */
  --font-size-footer-copy: 9px;
}

/* CSS本体 */

html {
  scroll-padding-top: 130px;
}

body {
  background-color: var(--bg-dark-brown);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 18px;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-pink);
  padding: 0 20px;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.logo {
  font-size: var(--font-size-logo);
  color: #fff;
  font-weight: normal;
  white-space: nowrap;
}

.btn-header-nav {
  flex-shrink: 0;
  background-color: var(--btn-green);
  color: #ffffff;
  padding: 6px 18px;
  font-size: var(--font-size-header-nav);
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  white-space: nowrap;
}

.btn-action {
  display: inline-block;
  background-color: var(--btn-green);
  color: #ffffff;
  padding: 10px 30px;
  font-size: var(--font-size-btn-action);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: opacity 0.2s;
}
.btn-action:hover {
  opacity: 0.8;
}

.site-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.main-content {
  flex: 1;
  background-color: var(--main-bg-beige);
  min-width: 500px;
  padding-bottom: 100px;
}

.sidebar {
  flex: 0 0 auto;
  width: fit-content;
  color: #fff;
  padding: 40px 15px;
  position: sticky;
  top: 130px;
  align-self: flex-start;
}

.side-menu {
  list-style: none;
  padding: 0;
  white-space: nowrap;
}

.side-menu li {
  margin-bottom: 50px;
  line-height: 1.3;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
}
.side-menu a:hover {
  text-decoration: underline;
}

.left-sidebar {
  text-align: left;
  font-size: var(--font-size-left-sidebar);
}
.right-sidebar {
  text-align: right;
  font-size: var(--font-size-right-sidebar);
  display: flex;
  flex-direction: column;
}

.sns-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-top: 30px;
  width: 100%;
}

.sns-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.sns-icon-box {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
  object-fit: cover;
  object-position: center;
}

.sns-name {
  font-size: var(--font-size-sns-name);
  font-weight: bold;
}

.hero-section {
  padding: 25px 30px;
}

.hero-title-box {
  background-color: #e99da2;
  text-align: center;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 4px;
}
.hero-title-box h1 {
  font-size: var(--font-size-hero-title);
  font-weight: bold;
  line-height: 1.4;
}
.hero-body {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.hero-img-area img {
  height: 100%;
  max-height: 150px;
  aspect-ratio: 20 / 11;
  height: auto;
  border: 1px solid #ddd;
}
.hero-text-area {
  flex: 1;
  font-size: var(--font-size-normal);
  line-height: 1.6;
}

.content-section {
  padding: 20px 30px 40px;
}
.section-bar {
  background-color: var(--accent-pink);
  text-align: center;
  padding: 8px;
  margin-bottom: 25px;
  font-size: var(--font-size-section-var);
  border-radius: 4px;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.course-item h3 {
  font-size: var(--font-size-course-item-sec-title);
  font-weight: bold;
  margin-bottom: 5px;
}
.course-item p {
  font-size: var(--font-size-normal);
  line-height: 1.6;
}

.teachers-grid {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.teacher-card {
  flex: 1;
  text-align: center;
}
.teacher-img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  background-color: #ddd;
  border-radius: 5%;
  margin: 0 auto 15px;
}
.teacher-card h3 {
  font-size: var(--font-size-teachercard-name);
  margin-bottom: 5px;
}
.teacher-role {
  font-size: var(--font-size-teacher-role);
  font-weight: bold;
}
.teacher-desc {
  font-size: var(--font-size-normal);
  text-align: left;
  line-height: 1.5;
}

.btn-center {
  text-align: center;
  margin-top: 20px;
}

.voices-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.voice-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.voice-img {
  width: 120px;
  height: 120px;
  background-color: #d9d9d9;
  flex-shrink: 0;
  border-radius: 10px;
}
.voice-text {
  flex: 1;
}
.voice-text h3 {
  font-size: var(--font-size-voice-title);
  margin-bottom: 5px;
  font-weight: bold;
}
.voice-text p {
  font-size: var(--font-size-normal);
  line-height: 1.5;
}

.access-area {
  display: flex;
  flex-direction: column;
}
.access-main-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.map-box img {
  width: 250px;
  height: auto;
  border: 1px solid #ccc;
}
.access-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}
.access-info {
  font-size: var(--font-size-normal);
  line-height: 1.8;
}
.btn-map-area {
  text-align: center;
  width: 100%;
}

.guide-msg {
  width: fit-content;
  margin: 40px auto 10px;
  text-align: left;
  font-size: var(--font-size-normal);
  line-height: 1.6;
}
.arrow {
  text-align: center;
  font-size: var(--font-size-arrow);
  color: #999;
  margin-top: 5px;
}

.form-section {
  margin-top: 40px;
}
.form-header-bar {
  background-color: #c4a88f;
  text-align: center;
  padding: 12px;
}
.form-header-bar h2 {
  color: #ffffff;
  font-size: var(--font-size-form-title);
  font-weight: bold;
}
.form-desc {
  text-align: center;
  font-size: var(--font-size-form-desc);
  margin: 20px 0 30px;
}

.entry-form {
  padding: 0 15%;
}
.form-row {
  margin-bottom: 30px;
}
.form-row label {
  display: block;
  background-color: var(--form-label-brown);
  padding: 10px 15px;
  font-size: var(--font-size-form-label);
  font-weight: bold;
  color: #5d4037;
  text-align: center;
}

.form-row input,
.form-row select {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--form-border-color);
  margin-top: 5px;
  padding: 0 8px;
  font-size: var(--font-size-form-input);
}

.form-row select {
  text-align: center;
}

.form-input-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}
.field-unit {
  display: flex;
  flex-direction: column;
}
.field-desc {
  font-size: var(--font-size-form-desc);
  font-weight: bold;
  color: #5d4037;
  margin-bottom: 3px;
  padding-left: 5px;
}

.form-tel-group {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}
.form-tel-group input {
  width: 80px;
  text-align: center;
}
.hyphen {
  font-weight: bold;
  color: var(--form-border-color);
}

.form-btn-area {
  text-align: center;
  margin-top: 40px;
}
.btn-submit {
  display: block;
  width: 100%;
  background-color: var(--form-submit-brown);
  color: #ffffff;
  padding: 15px;
  border: none;
  font-size: var(--font-size-form-label);
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 15px;
}
.btn-mail {
  background-color: var(--form-mail-brown);
  color: #ffffff;
  padding: 10px 40px;
  border: none;
  font-size: var(--font-size-form-label);
  cursor: pointer;
}

.footer-bar {
  display: block;
  width: 100%;
  background-color: #3e2723;
  padding: 20px 40px;
}
.copyright {
  font-size: var(--font-size-footer-copy);
  color: #ffffff;
  opacity: 0.7;
  text-align: right;
  display: block;
}
