@charset "UTF-8";

/* =========================================================================
   Reset & Base variables
   ========================================================================= */
:root {
  --color-text: #333333;
  --color-light: #777777;
  --color-bg: #FCFCFA;
  /* わずかに温かみのある白基調 */
  --color-accent: #E8E3DF;
  /* ベージュ系の図形用アクセント */
  --color-primary: #C5A182;
  /* リンクやボタンのアクセントカラー */
  --font-base: 'Zen Kaku Gothic New', sans-serif;
  --max-width: 1000px;
}

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

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* =========================================================================
   Background Shapes
   ========================================================================= */
.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  background-color: var(--color-accent);
  opacity: 0.4;
  filter: blur(40px);
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -200px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: -150px;
}

/* =========================================================================
   Typography & Titles
   ========================================================================= */
.section-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  text-transform: capitalize;
}

.section-title .ja {
  display: block;
  font-size: 13px;
  color: var(--color-light);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.work-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-light);
  padding-bottom: 2px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.work-link::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.3s ease;
}

.work-item:hover .work-link {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.work-item:hover .work-link::after {
  transform: translateX(4px);
}

/* =========================================================================
   Header
   ========================================================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: all 0.3s ease;
}

#header.is-scrolled {
  background-color: rgba(252, 252, 250, 0.95);
  backdrop-filter: blur(5px);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  margin: 0 auto;
}

.logo a {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gnav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.gnav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.btn-contact {
  background-color: var(--color-text);
  color: #fff;
  padding: 8px 24px;
  border-radius: 30px;
}

.btn-contact:hover {
  background-color: var(--color-primary);
  opacity: 1;
}

.hamburger {
  display: none;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  z-index: 2;
}

.hero-copy {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-light);
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

/* =========================================================================
   Section Layouts
   ========================================================================= */
.section {
  padding: 100px 0;
}

/* Fade in animation */
.js-fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.js-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.about-image {
  width: 50%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  border-radius: 10px 100px 10px 100px;
  overflow: hidden;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  /* 少し下寄りに基準を合わせて上の空をカット */
  transform: scale(1.15);
  /* 枠内で15%拡大 */
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.2);
}

.about-text {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.about-text h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.6;
}

.profile-name {
  font-size: 16px;
  font-weight: 500;
  margin-top: -15px;
  margin-bottom: 25px;
  color: var(--color-text);
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

.link-btn {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 5px;
}

.link-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* =========================================================================
   Works
   ========================================================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.work-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.work-thumb {
  position: relative;
  height: 220px;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.work-info {
  padding: 25px;
}

.work-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

.work-info p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* =========================================================================
   School
   ========================================================================= */
.school-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  display: flex;
  overflow: hidden;
}

.school-text {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-camera-icon {
  position: absolute;
  top: 50px;
  right: 60px;
  width: 85px;
  height: 85px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 10;
  animation: floatCamera 6s ease-in-out infinite;
  will-change: transform;
}

.school-camera-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes floatCamera {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(4deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@media screen and (max-width: 768px) {
  .school-camera-icon {
    top: 35px;
    right: 35px;
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.38);
  }
}

.school-text .section-title {
  text-align: left;
  margin-bottom: 30px;
}

.school-text .section-title .ja {
  color: rgba(255, 255, 255, 0.8);
}

.school-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 500;
}

.school-text p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.link-btn.white {
  border-color: #fff;
  align-self: flex-start;
}

.link-btn.white:hover {
  color: #fff;
  opacity: 0.7;
}

.school-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.school-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.school-slide.is-active {
  opacity: 1;
}

.mobile-only {
  display: none !important;
}

.pc-only {
  display: block !important;
}

/* =========================================================================
   Service
   ========================================================================= */
.service-list {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.service-list li {
  flex: 1;
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.service-list h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-list p {
  font-size: 14px;
  text-align: left;
  color: #555;
}

.service-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-light);
}

/* =========================================================================
   FAQ
   ========================================================================= */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 25px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-base);
}

.accordion-header .icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.accordion-header .icon::before,
.accordion-header .icon::after {
  content: '';
  position: absolute;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.accordion-header .icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.accordion-header .icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

.accordion-item.is-open .icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding-bottom: 25px;
  color: #555;
  font-size: 14px;
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact-box {
  background: #fff;
  padding: 80px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.contact-lead {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-text);
  color: #fff;
  padding: 16px 50px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 161, 130, 0.3);
}

.sns-lead {
  font-size: 13px;
  color: var(--color-light);
  margin-bottom: 15px;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.sns-links a {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-text);
}

.sns-links a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.contact-form .badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: normal;
  letter-spacing: 0;
}

.contact-form .badge-required {
  background-color: #e57373;
  color: #fff;
}

.contact-form .badge-optional {
  background-color: #b0bec5;
  color: #fff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
  font-size: 13px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(197, 161, 130, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* プルダウン（セレクトボックス）のスタイリング */
.contact-form .select-wrapper {
  position: relative;
  width: 100%;
}

.contact-form .select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s;
}

.contact-form .select-wrapper:focus-within::after {
  border-color: var(--color-primary);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px; /* 矢印と被らないように */
  cursor: pointer;
}

.contact-form select:invalid,
.contact-form select option[value=""] {
  color: #aaa;
}

.contact-form .form-submit {
  text-align: center;
  margin-top: 32px;
}

.contact-form .btn-primary {
  width: 100%;
  max-width: 240px;
  margin-bottom: 0;
  border: none;
  cursor: pointer;
}

.contact-form .form-status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  animation: fadeIn 0.4s ease forwards;
}

.contact-form .form-status.is-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.contact-form .form-status.is-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  text-align: center;
  padding: 40px 0;
  font-size: 12px;
  color: var(--color-light);
}

/* =========================================================================
   Responsive (Mobile)
   ========================================================================= */
@media screen and (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  /* Header Mobile */
  .gnav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    transition: right 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
  }

  .gnav.is-open {
    right: 0;
  }

  .gnav ul {
    flex-direction: column;
    gap: 40px;
  }

  .hamburger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 9px;
  }

  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero Mobile */
  .hero {
    height: auto;
    min-height: auto;
    flex-direction: column-reverse;
    padding-top: 100px;
    /* 固定ヘッダーとの被り防止＋下部に白い余白を確保 */
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 50vh;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: 20px 20px 20px;
    width: 100%;
    background: var(--color-bg);
    margin-top: 0;
    z-index: 10;
  }

  .hero-copy {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .hero-sub {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  /* About Mobile */
  .about-flex {
    flex-direction: column;
    gap: 40px;
  }
  .about-text {
    text-align: center;
  }
  .about-text p {
    text-align: left;
  }
  .about-text .profile-name {
    text-align: center;
  }

  /* Works Mobile */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* School Mobile */
  .school-banner {
    flex-direction: column-reverse;
  }

  .school-text {
    padding: 40px 20px;
  }

  .school-image {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .mobile-only {
    display: block !important;
  }

  .pc-only {
    display: none !important;
  }

  /* Service Mobile */
  .service-list {
    flex-direction: column;
  }
}