@charset "UTF-8";

/**
 * style.css
 * 株式会社ILL 共通スタイルシート
 */

/* ==========================================
   1. 縦書き・筆書きアニメーション
   ========================================== */
.vertical-writing {
    writing-mode: vertical-rl;
    font-family: 'Shippori Mincho', serif;
    user-select: text;
    -webkit-user-select: text;
}

.copy-line {
    display: block;
}

.brush-line {
    display: inline-block;
    white-space: nowrap;
    padding: 0.8em 0.5em;
    margin: -0.8em -0.5em;
    clip-path: inset(-100% -100% 100% -100%);
}

.brush-line.animate {
    animation: brushReveal 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes brushReveal {
    0% { clip-path: inset(-100% -100% 100% -100%); }
    100% { clip-path: inset(-100% -100% -100% -100%); }
}

/* ==========================================
   2. ヒーローエリア 装飾
   ========================================== */
.hero-band-bg {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 25px 50px -12px rgba(3, 105, 161, 0.15); /* sky-700 の影 */
    border-radius: 2px;
}

.deco-line-x {
    width: 40px;
    height: 1px;
    background-color: rgba(3, 105, 161, 0.5); /* sky-700 */
    transform: scaleX(0);
}

.deco-line-y {
    width: 1px;
    height: 40px;
    background-color: rgba(3, 105, 161, 0.5); /* sky-700 */
    transform: scaleY(0);
}

.deco-line-tl-x {
    transform-origin: left;
    animation: scaleAnim 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards 1.5s;
}

.deco-line-tl-y {
    transform-origin: top;
    animation: scaleAnim 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards 1.5s;
    position: absolute;
    top: 0;
    left: 0;
}

.deco-line-br-x {
    transform-origin: right;
    animation: scaleAnim 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards 1.8s;
    position: absolute;
    bottom: 0;
    right: 0;
}

.deco-line-br-y {
    transform-origin: bottom;
    animation: scaleAnim 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards 1.8s;
    position: absolute;
    bottom: 0;
    right: 0;
}

.rakkan {
    border: 2px solid #9A2A2A; /* 落款（ハンコ）は赤茶色が映えるためそのまま */
    color: #9A2A2A;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    border-radius: 2px;
    letter-spacing: 0.1em;
    background-color: rgba(255, 255, 255, 0.9);
    writing-mode: horizontal-tb;
}

@keyframes scaleAnim {
    to { transform: scale(1); }
}

@keyframes stampAnim {
    0% { opacity: 0; transform: scale(1.5) rotate(-10deg); }
    50% { opacity: 1; transform: scale(0.9) rotate(-4deg); }
    100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

.animate-stamp {
    animation: stampAnim 0.6s ease-out 2.5s forwards;
}

/* ==========================================
   3. ヒーローエリア 画像演出
   ========================================== */
.animate-zoom { animation: zoomIn 20s ease-out infinite alternate; }
.animate-zoom-rev { animation: zoomIn 20s ease-out infinite alternate-reverse; }

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes slideCrossFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.slide-img-1 { background-image: url("../images/hito_1.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(20%); }
.slide-img-2 { background-image: url("../images/hito_2.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(20%); }
.slide-img-3 { background-image: url("../images/hito_3.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(20%); }
.grid-img-1 { background-image: url("../images/uretan_8.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(30%); }
.grid-img-2 { background-image: url("../images/frp_2.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(40%); }
.grid-img-3 { background-image: url("../images/tairu_4.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(30%); }
.grid-img-4 { background-image: url("../images/yane1.avif"); background-size: cover; background-position: center; height: 100%; width: 100%; filter: grayscale(40%); }

.hero-slide-1 { animation: slideCrossFade 18s ease-in-out infinite; }
.hero-slide-2 { animation: slideCrossFade 18s ease-in-out infinite; animation-delay: 6s; }
.hero-slide-3 { animation: slideCrossFade 18s ease-in-out infinite; animation-delay: 12s; }

/* ==========================================
   4. 施工事例ページ専用スタイル
   ========================================== */
.project-item {
    background: white;
    margin-bottom: 6rem;
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.project-img-container {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #f0f9ff; /* sky-50 */
}
.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-img-container:hover img {
    transform: scale(1.05);
}
.project-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(3, 105, 161, 0.85); /* sky-700 */
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    letter-spacing: 0.1em;
}

/* ギャラリーモーダル */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(8, 47, 73, 0.95); /* sky-900 */
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal.active { display: flex; }
.modal-img { max-width: 90%; max-height: 90%; object-fit: contain; }
.modal-close { position: absolute; top: 2rem; right: 2rem; color: white; font-size: 2rem; cursor: pointer; }

/* ==========================================
   5. 共通パーツ・コンポーネント
   ========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* セクションタイトル装飾 */
.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: #0369a1; /* sky-700 */
}

.section-sub-title {
    color: #0ea5e9; /* sky-500 */
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* スクロールダウン表示 */
.scroll-down-text {
    font-size: 10px;
    font-weight: bold;
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.scroll-down-line-wrap {
    width: 1px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.scroll-down-line-inner {
    width: 100%;
    height: 100%;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ボタン・タグ類 */
.nav-contact-btn {
    background-color: #0369a1; /* sky-700 */
    color: #ffffff;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: bold;
    border: 1px solid #0369a1;
    transition: all 0.3s;
    border-radius: 2px;
}
.nav-contact-btn:hover {
    background-color: #0284c7; /* sky-600 */
    border-color: #0284c7;
}

.works-cta-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0369a1; /* sky-700 */
    padding: 1.25rem 3rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    border: 1px solid #ffffff;
    transition: all 0.3s;
    border-radius: 2px;
}
.works-cta-btn:hover {
    background-color: #f0f9ff;
}

/* 施工実績セクション背景 */
.works-bg-img {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: luminosity;
    position: absolute;
    inset: 0;
}

/* フッター */
.footer-wrap {
    background-color: #082f49; /* sky-900 */
    color: white;
    padding: 6rem 1rem 3rem 1rem;
}

.footer-bottom {
    color: #7dd3fc; /* sky-300 */
    font-size: 0.75rem;
    margin-top: 4rem;
}

/* ==========================================
   6. ハンバーガーメニュー アニメーション
   ========================================== */
#menu-btn.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menu-btn.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================
   7. レスポンシブ対応 (メディアクエリ)
   ========================================== */
@media (min-width: 768px) {
    .deco-line-x { width: 64px; }
    .deco-line-y { height: 64px; }
}
@media (max-width: 768px) {
    .section-title::before { left: 0px; width: 3px; }
    .project-gallery-grid { grid-template-columns: 1fr; }
}


/* ==========================================
   ILL想いセクション用 常時アニメーション
   ========================================== */
/* 1. 背景のぼんやりした光（水滴イメージ）がゆらゆら動く */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* 2. 後ろの巨大な透かし文字がゆっくり上下に揺れる */
@keyframes floatSlow {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}
.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

/* 3. 頭文字の後ろで常に広がる波紋（防水イメージ） */
@keyframes ripple {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
.animate-ripple-1 { animation: ripple 3s linear infinite; }
.animate-ripple-2 { animation: ripple 3s linear infinite 1s; }
.animate-ripple-3 { animation: ripple 3s linear infinite 2s; }