
/*
Theme Name: Atllon
Theme URI: https://example.com/
Author: Atllon Inc.
Author URI: https://example.com/
Description: A minimalist corporate theme based on the Modern Archive concept.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: minimalist, corporate, monochromatic
*/

/* 基本設定 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #000;
}

/* Utility for text masking reveal (JavaScriptと連動) */
.reveal-text-container {
  overflow: hidden;
}
.reveal-text-content {
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-text-content.is-visible {
  transform: translateY(0);
}

/* --- OPENING ANIMATION STYLES --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999; /* 最前面 */
    pointer-events: none; /* アニメーション後は操作を阻害しない */
    display: block;
}

/* 上半分のカーテン */
.panel-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: #000;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: top;
}

/* 下半分のカーテン */
.panel-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: #000;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform-origin: bottom;
}

/* 中央ロゴラッパー */
.loading-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ロゴスタイル */
.loading-logo {
    display: block;
    width: 240px;
    max-width: 80%;
    height: auto;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* --- Animation Trigger Classes --- */
/* bodyにloadedクラスがついた時の挙動 */
body.loaded .panel-top {
    transform: translateY(-100%);
}
body.loaded .panel-bottom {
    transform: translateY(100%);
}
body.loaded .loading-logo {
    opacity: 0;
}

/* --- Typewriter Animation Styles --- */
.hero-title {
    font-weight: 900;
    /* フォントファミリーはTailwind設定で適用 */
    color: #000;
    min-height: 1.2em;
}

/* Blinking Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: #000;
    animation: blink 1s infinite;
    margin-left: 5px;
    color: transparent;
    line-height: 1em;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Reveal Animation (汎用) */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
