@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');

/* =================================================================
  @LAYER DEFINITION
================================================================= */
@layer reset, composition, utilities, blocks, exceptions;

/* =================================================================
  DESIGN TOKENS (:root)
================================================================= */
:root {
  /* Color Palette */
  --color-white: #ffffff;
  --color-black: #000000;
  
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Spacing Scale (1 = 0.25rem = 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography */
  /* --font-sans:  ''; */
  --font-serif: "Shippori Mincho", serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Borders & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --border-width: 1px;
  --border-width-2: 2px;
  --border-color: var(--color-gray-500);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-property: all;
  --transition-duration: 200ms;
  --transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================
  @LAYER RESET
================================================================= */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    font-family: var(--font-serif);
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    letter-spacing: 0.14em;
    overflow-x: hidden;
  }

  button,
  input,
  select,
  textarea {
    font-family: inherit;
    font-size: inherit;
  }

  button {
    border: none;
    background: none;
    cursor: pointer;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul,
  ol {
    list-style: none;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* =================================================================
  @LAYER COMPOSITION (High-level Layouts)
================================================================= */
@layer composition {
  .opening-animation {

  }

  .opening__01,
  .opening__02 {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic Viewport Height - スマホのアドレスバーを考慮 */
    text-align: center;
    opacity: 0;
  }

  /* フォールバック: dvhがサポートされていない場合 */
  @supports not (height: 100dvh) {
    .opening__01,
    .opening__02 {
      height: 100vh;
    }
    
    /* スマホ用の特別な調整 */
    @media (max-width: 767px) {
      .opening__01,
      .opening__02 {
        height: -webkit-fill-available;
        min-height: 100vh;
      }
    }
  }

  .opening__text-01 {
    max-width: 90%;
    padding: 0 var(--space-4);
  }

  .opening__01 span {
    display: inline-block;
    font-size: 24px;
    letter-spacing: 0.1em;
    line-height: 1.8;
  }

  @media (min-width: 768px) {
    .opening__text-01 {
      max-width: 100%;
      padding: 0;
    }

    .opening__01 span {
      font-size: 3.4vw;
      letter-spacing: 0.6;
      line-height: 1.6;
    }
  }

  .opening__02 {
    font-size: 3.4vw;
    letter-spacing: 0.6;
  }

  .opening__text-02.neon {
    animation: neon 2s ease-out forwards;
  }

  .opening-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  @media (min-width: 768px) {
    .opening-logo {
      max-width: 400px;
    }
  }

  .opening__02-bg {
    background-color: var(--color-black);
  }

  .main {
    opacity: 0;
    /* opacity: 1; */
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
  }

  .section {
    padding: 4rem 0 4rem;
    background-color: var(--color-black);
    z-index: 2;
    overflow-x: hidden;
  }

  @media (min-width: 768px) {
    .section {
      padding: 4rem 0 8rem;
    }
  }
  .section:nth-child(odd) {
    background-color: var(--color-gray-900);
  }

  /* Vertical stack layout */
  .stack>*+* {
    margin-top: var(--space-4);
  }

  .stack-lg>*+* {
    margin-top: var(--space-8);
  }

  /* 各セクション固有のスタイル */
  .hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh; /* Dynamic Viewport Height - スマホのアドレスバーを考慮 */
    overflow: hidden;
    z-index: 1;
  }

  /* フォールバック: dvhがサポートされていない場合 */
  @supports not (height: 100dvh) {
    .hero {
      height: 100vh;
    }
    
    /* スマホ用の特別な調整 */
    @media (max-width: 767px) {
      .hero {
        height: -webkit-fill-available;
        min-height: 100vh;
      }
    }
  }

  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: opacity 2s ease, transform 8s ease;
    transform: scale(1);
  }

  .hero-slide.active {
    z-index: 1;
    transform: scale(1.1);
  }

  .hero-slide-1 {
    background-image: url('../img/mv-01.jpg');
  }

  .hero-slide-2 {
    background-image: url('../img/mv-02.jpg');
  }

  .hero-slide-3 {
    background-image: url('../img/mv-03.jpg');
  }

  .hero-slide-4 {
    background-image: url('../img/mv-04.jpg');
  }

  .hero-slide-5 {
    background-image: url('../img/mv-05.jpg');
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
  }

  .hero-logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  @media (min-width: 768px) {
    .hero-logo {
      max-width: 400px;
    }
  }

  .hero-content h1 {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-4);
  }

  .scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .caret {
    display: block;
    width: 20px;
    height: 20px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
  }

  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0) rotate(-45deg);
    }
    40% {
      transform: translateY(-10px) rotate(-45deg);
    }
    60% {
      transform: translateY(-5px) rotate(-45deg);
    }
  }
  

  .concept {

  }

  .section.values {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
  }

  .section.values * {
    color: var(--color-black) !important;
  }

  .section.values .card {
    --card-bg: var(--color-white);
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
  }

  .message-tile {
    margin-bottom: var(--space-6);
  }

  .section.use-case {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
    padding-bottom: 2rem;
  }

  @media (min-width: 768px) {
    .section.use-case {
      padding-bottom: 8rem;
    }
  }

  .section.use-case * {
    color: var(--color-black) !important;
  }

  .section.use-case .card {
    --card-bg: var(--color-white);
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
  }

  .section.news {
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
  }

  .section.news * {
    color: var(--color-black) !important;
  }

  .section.news .button {
    margin-top: 40px;
    background-color: #4d9940 !important;
    color: var(--color-white) !important;
    border-color: #4d9940 !important;
    padding: 1.5rem 3.5rem !important;
    font-size: 1.5rem !important;
  }

  @media (max-width: 767px) {
    .section.news .button {
      padding: 1.25rem 2rem !important;
      font-size: 1.25rem !important;
    }
  }

  .section.news .button:hover {
    background-color: #3d7a32 !important;
    border-color: #3d7a32 !important;
  }

  .section.news .button.disabled {
    opacity: 0.5 !important;
    pointer-events: none;
    cursor: not-allowed;
  }

  .section.news .button.disabled:hover {
    background-color: #4d9940 !important;
    border-color: #4d9940 !important;
  }

  .section.contact {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
  }

  .section.contact * {
    color: var(--color-white) !important;
  }

  .section.contact .card {
    --card-bg: var(--color-white);
    background-color: var(--color-white) !important;
    color: var(--color-black) !important;
  }

  .section.contact .card * {
    color: var(--color-black) !important;
  }

  .section.contact .button {
    color: var(--color-white) !important;
    border-color: var(--color-white) !important;
  }

  .section.contact .button::before {
    background-color: var(--color-white);
  }

  .section.contact .button:hover {
    color: var(--color-white) !important;
  }

  .access {

  }

  .access-map {
    width: 100%;
  }

  .access-address {
    width: 100%;
  }

  @media (min-width: 768px) {
    .access-map {
      width: 50%;
    }

    .access-address {
      width: 50%;
    }
  }

  .contact {

  }

  .footer {
    
  }

  /* neon */
@keyframes neon {
  0% {
    filter: blur(0);
    color: #333;
  }

  50% {
    filter: blur(20px);
    color: #435e7a;
  }

  100% {
    filter: blur(10px);
    color: #fff;
  }
}
}

/* =================================================================
  @LAYER UTILITIES (Low-level Helpers)
================================================================= */
@layer utilities {
  /* Spacing */
  .p-4 {
    padding: var(--space-4);
  }

  .p-6 {
    padding: var(--space-6);
  }

  .p-8 {
    padding: var(--space-8);
  }

  .py-2 {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .py-4 {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .px-6 {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .mt-4 {
    margin-top: var(--space-4);
  }

  .mt-8 {
    margin-top: var(--space-8);
  }

  .mb-4 {
    margin-bottom: var(--space-4);
  }

  .mb-6 {
    margin-bottom: var(--space-6);
  }

  .mx-auto {
    margin-left: auto;
    margin-right: auto;
  }

  /* Typography */
  .text-sm {
    font-size: var(--font-size-sm);
  }

  .text-lg {
    font-size: var(--font-size-lg);
  }

  .text-xl {
    font-size: var(--font-size-xl);
  }

  .text-2xl {
    font-size: var(--font-size-2xl);
  }

  .text-3xl {
    font-size: var(--font-size-3xl);
  }

  .text-4xl {
    font-size: var(--font-size-4xl);
  }

  .font-medium {
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    font-weight: var(--font-weight-semibold);
  }

  .font-bold {
    font-weight: var(--font-weight-bold);
  }

  .text-center {
    text-align: center;
  }

  .text-light {
    text-align: left;
  }

  .text-white {
    color: var(--color-white);
  }

  .text-gray-500 {
    color: var(--color-gray-500);
  }

  .text-primary-500 {
    color: var(--color-primary-500);
  }

  /* Layout */
  .block {
    display: block;
  }

  .hidden {
    display: none;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .items-center {
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-between {
    justify-content: space-between;
  }

  .flex-col {
    flex-direction: column;
  }

  .gap-2 {
    gap: var(--space-2);
  }

  .gap-4 {
    gap: var(--space-4);
  }

  .gap-8 {
    gap: var(--space-8);
  }
  
  .w-full {
    width: 100%;
  }

  .w-16 {
    width: var(--space-16);
  }
  .h-16 {
    height: var(--space-16);
  }
  
  /* Borders & Shadows */
  .rounded-md {
    border-radius: var(--radius-md);
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-full {
    border-radius: var(--radius-full);
  }

  .shadow-md {
    box-shadow: var(--shadow-md);
  }

  .shadow-lg {
    box-shadow: var(--shadow-lg);
  }

  .border {
    border: var(--border-width) solid var(--border-color);
  }

  .border-2 {
    border-width: var(--border-width-2);
  }

  .border-primary-500 {
    border-color: var(--color-primary-500);
  }

  /* Backgrounds */
  .bg-white {
    background-color: var(--color-white);
  }

  .bg-gray-50 {
    background-color: var(--color-gray-50);
  }

  .bg-gray-900 {
    background-color: var(--color-gray-900);
  }

  .bg-primary-500 {
    background-color: var(--color-primary-500);
  }

  @media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
  }
}

/* =================================================================
  @LAYER BLOCKS (Reusable Components)
================================================================= */
@layer blocks {
  .card {
    --card-bg: var(--color-gray-900);
    --card-padding: var(--space-8);
    --card-radius: var(--radius-lg);
    --card-shadow: var(--shadow-md);
    --card-border-width: var(--border-width-2);
    --card-border-color: transparent;

    background-color: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: var(--card-border-width) solid var(--card-border-color);
  }

  .section-title {
    margin-bottom: var(--space-12);
  }

  /* 汎用アニメーションシステム */
  [data-animation] {
    opacity: 0;
    transition: opacity 2.5s ease, transform 2.5s ease, filter 3s ease;
  }

  /* fade-in-up */
  [data-animation="fade-in-up"] {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition-delay: 0.3s;
  }

  [data-animation="fade-in-up"].visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  /* fade-in */
  [data-animation="fade-in"] {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(10px);
    transition-delay: 0.7s;
  }

  [data-animation="fade-in"].visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  

  .section-logo {
    display: block;
    margin: 0 auto var(--space-20);
    max-width: 180px;
    width: 100%;
    height: auto;
  }

  @media (min-width: 768px) {
    .section-logo {
      max-width: 240px;
    }
  }

  .section-title h2 {
    position: relative;
    letter-spacing: 0.2em;
  }

  .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-gray-300);
  }

  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid transparent;
    border-radius: 0;
    font-weight: var(--font-weight-normal);
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: scale(1);
  }

  .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
  }

  .button > * {
    position: relative;
    z-index: 1;
  }

  .button:hover {
    border-color: var(--color-black);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .button:hover::before {
    opacity: 1;
  }

  .button:active {
    transform: scale(0.98) translateY(1px);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .message-photo {
    max-width: 190px;
    width: 100%;
    margin: 0 auto;
  }

  @media (min-width: 768px) {
    .message-photo {
      max-width: 300px;
      width: auto;
      margin: 0;
    }
  }

  .photo-gallery {
    position: relative;
    left: 50%;
    width: 100%;
    max-width: 100%;
    margin: 4rem 0;
    overflow: hidden;
    transform: translateX(-50%);
  }

  @media (min-width: 768px) {
    .photo-gallery {
      width: 1400px;
      max-width: 1400px;
    }
  }

  .gallery-container {
    width: 100%;
    overflow: hidden;
  }

  .gallery-track {
    display: flex;
    width: max-content;
    animation: scroll 100s linear infinite;
  }

  .gallery-item {
    flex: 0 0 150px;
    height: 100px;
    margin-right: 10px;
  }

  .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (min-width: 768px) {
    .gallery-item {
      flex: 0 0 300px;
      height: 200px;
      margin-right: 20px;
    }
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
  
    100% {
      transform: translateX(-50%);
    }
  }

}

/* =================================================================
  @LAYER EXCEPTIONS (Overrides & States)
================================================================= */
@layer exceptions {

}

/* =================================================================
  ワークショップテーブル
================================================================= */
.workshop-table {
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.workshop-table tr {
  display: table-row;
}

.workshop-table td {
  display: table-cell;
}

@media (max-width: 767px) {
  .workshop-schedule {
    margin-bottom: 0 !important;
  }

  .workshop-table {
    width: 100%;
  }

  .workshop-table tr {
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 0;
  }

  .workshop-table td {
    display: block;
    width: 100%;
    padding: 0.5rem 0 !important;
    border-bottom: none !important;
    text-align: left !important;
  }

  .workshop-table td:first-child {
    padding-top: 0.75rem !important;
  }

  .workshop-table td:last-child {
    padding-bottom: 0.75rem !important;
  }
}

/* ワークショップタイトル */
.workshop-title {
  position: relative;
  font-size: 1.75rem;
}

.workshop-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background-color: var(--color-black);
}

@media (min-width: 768px) {
  .workshop-title {
    font-size: 2rem;
  }
}