/* 修正内容：ヘッダーの角丸・浮く形対応 + モバイル対応 */

:root {
  --color-main-red: #E84A52;
  --color-light-gray: #F8F9FA;
  --color-medium-gray: #E9ECEF;
  --color-dark-gray: #212529;
  --color-accent-orange: #FF8A5B;
  --color-accent-purple: #9B59B6;
  --color-accent-green: #2ECC71;
  --color-accent-blue: #3498DB;
  --font-heading: "Inter", "Playfair Display", "游明朝", "Yu Mincho", serif;
  --font-body: "Inter", "Outfit", "游ゴシック", "YuGothic", "Hiragino Sans", sans-serif;
  --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark-gray);
  line-height: 1.6;
  background: #fff;
}

/* ====== HEADER ====== */

header.site-header {
  background: rgba(232, 74, 82, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 0;
  margin-bottom: 2rem;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1100px;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition-base);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.site-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-main-red);
  letter-spacing: 0.2em;
}

nav.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

nav.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.site-nav a:hover {
  color: #fff;
}

nav.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ====== KV ====== */
#kv {
  padding-top: 120px;
  width: 100%;
}

#kv img {
  object-fit: cover;
  width: 100%;
}

/* ====== DX Block ====== */
section.dx-block {
  background: radial-gradient(circle at top right, #fff5f5, #ffffff);
  padding: 6rem 2rem;
  margin-top: 4rem;
  margin-bottom: 0;
}

.dx-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.dx-label {
  font-size: 0.9rem;
  color: var(--color-accent-orange);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.dx-title {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-main-red);
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.dx-meta {
  font-size: 1rem;
  color: var(--color-dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.dx-lead {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: left;
}

.dx-lead span {
  display: block;
  font-size: 0.85rem;
  margin-top: 1rem;
}





/* ====== HERO ====== */
section.hero {
  background: radial-gradient(circle at top right, #fff5f5, #ffffff);
  padding: 6rem 2rem;
  margin-bottom: 4rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-label {
  font-size: 0.9rem;
  color: var(--color-accent-orange);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--color-main-red);
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.hero-meta {
  font-size: 1rem;
  color: var(--color-dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.hero-lead {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-visual figure {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: fadeInUp 0.8s ease;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual figcaption {
  background: var(--color-main-red);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ====== SECTION HEADERS ====== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-orange), var(--color-main-red), var(--color-accent-purple));
  border-radius: 2px;
}

.section-header h2 {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-main-red);
  margin-bottom: 0.5rem;
}

.section-lead {
  font-size: 0.95rem;
  color: #666;
  margin-top: 1rem;
}

/* ====== WORKS SECTION ====== */
section.works {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

section.works-illustration::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent-blue), transparent);
  margin-bottom: 2rem;
}

section.works-3d::before {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent-green), transparent);
  margin-bottom: 2rem;
}

.work {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
  padding: 3rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  opacity: 0;
  animation: slideInView 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInView {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work:nth-child(even) {
  animation-delay: 0.1s;
}

.work:nth-child(odd) {
  animation-delay: 0.2s;
}

.work:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.work--reverse {
  grid-template-columns: 1fr 1.2fr;
}

.work--reverse .work-media {
  order: 2;
}

.work--reverse .work-body {
  order: 1;
}

.work-media figure {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.work-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.work:hover .work-media img {
  transform: scale(1.05);
}

.work-media figcaption {
  background: var(--color-dark-gray);
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  text-align: center;
}

.work-body {
  padding: 0.5rem;
}

.work-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--color-main-red);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.work-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.work-meta::before {
  content: '';
}

.work-illustration .work-meta::after {
  content: 'イラスト';
  background: var(--color-accent-orange);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.work-3d .work-meta::after {
  content: '立体作品';
  background: var(--color-accent-green);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.work-comment {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}


#dx-works .work {
  box-shadow: none;
  margin-bottom: 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid #999;
  border-radius: 0;
  
}

#dx-works .work:hover {
  transform: translateY(0px);
  box-shadow: none;
}

#dx-works .work-media img {
  transition: transform 0.6s ease;
}

#dx-works .work:hover .work-media img {
  transform: scale(1);
} 
	
}

/* ====== MESSAGE SECTION ====== */
section.message {
  background: linear-gradient(135deg, var(--color-accent-purple) 0%, #7B2D8F 100%);
  color: white;
  padding: 3rem 2rem;
  margin: 4rem 0;
}

.message .section-header {
  color: white;
}

.message .section-header h2 {
  color: white;
}

.message .section-header::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), white, rgba(255, 255, 255, 0.3));
}

.message-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.teacher-message {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid white;
}

.teacher-message h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.teacher-message p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.students-voice {
  margin-top: 2rem;
}

.students-voice h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.voice-list {
  list-style: none;
}

.voice-list li {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark-gray);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voice-meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #777;
  font-weight: 500;
}

/* ====== SCHOOL INFO ====== */
section.school-info {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 3rem 2rem;
  background: var(--color-light-gray);
  border-radius: 8px;
  text-align: center;
}

address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color-dark-gray);
}

.school-links {
  margin: 1.5rem 0 0;
}

.school-links a {
  color: var(--color-main-red);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.school-links a:hover {
  color: var(--color-accent-orange);
  text-decoration: underline;
}

/* ====== FOOTER ====== */
footer.site-footer {
  background: var(--color-dark-gray);
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  header.site-header {
    width: calc(100% - 16px);
    top: 8px;
    left: 8px;
    transform: none;
    border-radius: 12px;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .site-logo img {
    max-width: 200px;
  }

  nav.site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  nav.site-nav a {
    font-size: 0.85rem;
    padding-bottom: 0.3rem;
  }

  #kv {
    padding-top: 140px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .work--reverse {
    grid-template-columns: 1fr;
  }

  .work--reverse .work-media,
  .work--reverse .work-body {
    order: unset;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .message {
    padding: 2rem 1rem;
  }

  .voice-list li {
    padding: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  header.site-header {
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
  }

  .site-logo img {
    max-width: 140px;
  }

  nav.site-nav ul {
    gap: 0.5rem;
  }

  nav.site-nav a {
    font-size: 0.75rem;
    padding: 0.2rem 0.3rem;
  }

  #kv {
    padding-top: 130px;
  }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== MODAL ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: modalZoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2100;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--color-main-red);
  text-decoration: none;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalZoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-close {
    top: 15px;
    right: 25px;
  }
}