@charset "UTF-8";

:root {
  --bg-color: #2b2b2b;        
  --text-main: #f0f0f0;       
  --text-sub: #aaaaaa;        
  --accent-line: #444444;    
  --font-en-serif: 'Cormorant Garamond', serif;
  --font-en-sans: 'Montserrat', sans-serif;
  --font-jp: 'Zen Maru Gothic', sans-serif;
  --font-jp-mincho: 'Shippori Mincho', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-jp);
  line-height: 2.1;
  letter-spacing: 0.08em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.1s ease-out, color 0.1s ease-out;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---  ヘッダー / ロゴ / ナビゲーション --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 50px;
  background-color: rgba(43, 43, 43, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-en-sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.5em;
  color: inherit;
}

.logo .dot {
  font-weight: 700;
}

/* ナビゲーション */
.nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav a {
  font-family: var(--font-en-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover {
  color: var(--text-main);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #f0f0f0;
  transition: all 0.3s ease;
}

/* --- ヒーロー --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  background-image: url('images/program.jpg.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-inner, .scroll-indicator {
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 800px;
}

.hero-title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 30px;
  letter-spacing: 0.12em;
}

.hero-description {
  max-width: 680px;
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-indicator span {
  font-family: var(--font-en-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background-color: currentColor;
  opacity: 0.5;
}

/* --- セクション --- */
.section {
  padding: 120px 20px;
  background-color: #ffffff;
  color: #333333;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-en-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 15px;
  opacity: 0.7;
}

.section-title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 60px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

/* --- ABOUT --- */
.about {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-text {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 2.3;
  margin-bottom: 20px;
}

.about-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid currentColor;
  padding-left: 15px;
  opacity: 0.9;
}

.author-name {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  color: #333333;
}

.author-role {
  font-family: var(--font-en-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.view-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.view-more:hover {
    opacity: 0.6;
}

/* --- SERVICES --- */
.services {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  padding: 45px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  gap: 60px;
  align-items: flex-start;
}

.service-num {
  font-family: var(--font-en-sans);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.5;
  padding-top: 4px;
}

.service-detail h3 {
  font-family: var(--font-jp);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 15px;
}

.service-detail p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 2.0;
  opacity: 0.8;
}

/* --- CONTACT --- */
.contact {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-box {
  text-align: center;
  margin-top: 20px;
}

.contact-text-desc {
  margin-bottom: 25px;
  line-height: 2.0;
  font-size: 1.05rem;
  opacity: 0.8;
}

.contact-btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-en-sans);
  letter-spacing: 0.1em;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #333333;
}

/* --- CONTACT PAGE STYLES --- */
.contact-page-section {
  padding-top: 180px;
  min-height: 80vh;
}

.contact-form-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: var(--font-en-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label .required {
  font-size: 0.65rem;
  background-color: #333333;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 400;
}

.form-group label .optional {
  font-size: 0.65rem;
  background-color: #888888;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-family: var(--font-jp);
  font-size: 1rem;
  color: #333333;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #333333;
  background-color: #ffffff;
}

.custom-select-group {
  position: relative;
}

.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-family: var(--font-jp);
  font-size: 1rem;
  color: #888888;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.custom-select.selected .custom-select-trigger {
  color: #333333;
}

.custom-select-trigger:hover {
  border-color: #333333;
}

.select-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 99;
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 14px 18px;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: #333333;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.custom-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
  padding-left: 22px;
}

.custom-option:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-submit-area {
  text-align: center;
  margin-top: 10px;
}

.contact-submit-btn {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 15px 50px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-en-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.contact-submit-btn:hover {
  background-color: #333333;
  opacity: 0.9;
}

/* --- フッター --- */
.footer {
  padding: 90px 20px;
  background-color: var(--bg-color);
  color: var(--text-main);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-en-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.footer-copy {
  font-family: var(--font-en-sans);
  font-size: 0.75rem;
  margin-top: 10px;
  opacity: 0.7;
}

/* --- PHILOSOPHY  --- */
.sub-page {
  padding-top: 0;
}

.philosophy-hero {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/philosophy.jpg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 20px 60px 20px;
  overflow: hidden;
}

.philosophy-hero-inner {
  max-width: 950px;
  width: 100%;
  color: #ffffff;
}

.philosophy-hero .section-label {
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.philosophy-hero .section-title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.philosophy-hero .philosophy-content {
  font-size: 1.2rem;
  line-height: 2.2;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.philosophy-hero .philosophy-content p {
  margin-bottom: 25px;
  color: #ffffff;
  text-align: justify;
  text-justify: inter-ideograph;
  display: block;
  width: 100%;
}

.philosophy-second {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #ffffff;
  padding: 120px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.philosophy-second-inner {
  max-width: 800px;
  width: 100%;
  color: #2b2b2b;
}

.philosophy-second h3 {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #2b2b2b;
}

.philosophy-second p {
  line-height: 2.2;
  font-size: 1.1rem;
  color: #2b2b2b;
  margin-bottom: 35px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.philosophy-second .view-more {
  color: #2b2b2b;
  font-weight: 500;
  text-decoration: underline;
}

.philosophy-bg-section {
    width: 100%;
    background-image: url('images/philosophy.jpg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.scroll-container {
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

/* --- レスポンシブ（スマホ用） --- */
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(43, 43, 43, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav a {
    font-size: 1.2rem;
    color: #f0f0f0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .service-detail h3 {
    font-size: 1.25rem;
  }
  .service-item {
    flex-direction: column;
    gap: 20px;
  }

  /* Philosophy */
  .philosophy-hero {
    height: 100vh !important;
    max-height: 100vh !important;
    align-items: flex-end !important;
    padding: 0 20px 50px 20px !important;
    display: flex !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .philosophy-hero .section-label {
    text-align: center !important;
    font-size: 0.75rem !important;
    margin-bottom: 10px !important;
  }

  .philosophy-hero h1.section-title {
    font-size: 1.65rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.45 !important;
    margin-bottom: 25px !important;
  }

  .philosophy-hero .philosophy-content {
    font-size: 1.02rem !important;
    line-height: 1.9 !important;
    text-align: justify !important;
    text-justify: inter-ideograph !important;
  }

  .philosophy-hero .philosophy-content p {
    margin-bottom: 18px !important;
    text-align: justify !important;
    text-justify: inter-ideograph !important;
  }
}