/* ============================================
   MOSS Inc. - 共通スタイル
   NAHATO風デザイン / グリーンベース
============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- CSS VARIABLES ---------- */
:root {
    --green: #00A86B;
    --green-dark: #008755;
    --green-darker: #006640;
    --green-light: #E8F5EE;
    --green-pale: #F2FAF6;
    --green-accent: #00C77B;
    --green-10: rgba(0, 168, 107, 0.10);
    --green-05: rgba(0, 168, 107, 0.05);
    --black: #1A1A1A;
    --gray-dark: #444;
    --gray: #777;
    --gray-light: #AAA;
    --gray-bg: #F7F7F7;
    --white: #FFF;
    --footer-bg: #1A1A1A;
    --contact-bg: #2D2D2D;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ============================================
   ローディング画面
============================================ */
.ol-loading {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--white); z-index: 9999;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.ol-loading.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.ol-loading__logo {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800; color: var(--green);
    margin-bottom: 50px; opacity: 0;
    animation: logoFadeIn 1.8s var(--ease) 0.2s forwards;
    letter-spacing: 0.12em;
}
.ol-loading__bar {
    width: 240px; height: 2px;
    background: var(--green-10); border-radius: 2px;
    overflow: hidden; margin-bottom: 30px;
}
.ol-loading__bar-fill {
    height: 100%; background: var(--green);
    transform: scaleX(0); transform-origin: center left;
}
.ol-loading__dots { display: flex; gap: 10px; }
.ol-loading__dot {
    width: 6px; height: 6px; background: var(--green);
    border-radius: 50%; opacity: 0; transform: scale(0);
    animation: dot 1.2s var(--ease) infinite alternate;
}
.ol-loading__dot:nth-child(1) { animation-delay: 0s; }
.ol-loading__dot:nth-child(2) { animation-delay: 0.15s; }
.ol-loading__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dot {
    0%   { transform: scale(0); opacity: 0.3; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 0 0 40px; height: 80px;
}

.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo-icon {
    width: 36px; height: 36px; object-fit: contain;
}
.header-logo-text {
    font-family: 'Inter', sans-serif; font-size: 22px;
    font-weight: 800; color: var(--black); letter-spacing: 0.05em;
}

.header-nav { display: flex; align-items: center; gap: 36px; }
.header-nav a {
    font-size: 13px; font-weight: 500; color: var(--black);
    letter-spacing: 0.04em; position: relative; padding: 4px 0;
}
.header-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--green);
    transition: width 0.3s ease;
}
.header-nav a:hover { color: var(--green); }
.header-nav a:hover::after { width: 100%; }
.header-nav a.active { color: var(--green); }
.header-nav a.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 12px; height: 100%; }
.header-btn-recruit {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 28px; background: var(--green); color: var(--white);
    border-radius: 0; line-height: 1.3; text-align: center; min-width: 100px;
    height: 100%; margin-right: 0;
}
.header-btn-recruit:hover { background: var(--green-dark); color: var(--white); }
.header-btn-recruit-en {
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; opacity: 0.85;
}
.header-btn-recruit-ja {
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}

/* ハンバーガー */
.hamburger {
    display: none; flex-direction: column; gap: 6px;
    cursor: pointer; padding: 8px; z-index: 1001; background: none; border: none;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--black);
    transition: all 0.3s ease;
}

/* モバイルメニュー */
.mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white); padding: 20px; z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    display: block; padding: 14px 0; font-size: 15px; font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--black);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--green); }

/* ============================================
   共通セクション見出し（英語大+日本語小）
============================================ */
.section-heading { margin-bottom: 40px; }
.section-heading-en {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4.5vw, 56px); font-weight: 700;
    color: var(--black); line-height: 1.2; margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.section-heading-ja {
    font-size: 14px; color: var(--gray); font-weight: 500;
    letter-spacing: 0.1em;
}
.section-heading-bar {
    display: block; width: 40px; height: 3px;
    background: var(--green); margin-top: 16px;
}
.section-heading.center { text-align: center; }
.section-heading.center .section-heading-bar {
    margin-left: auto; margin-right: auto;
}
.section-heading.white .section-heading-en { color: var(--white); }
.section-heading.white .section-heading-ja { color: rgba(255,255,255,0.7); }
.section-heading.white .section-heading-bar { background: var(--white); }

/* ============================================
   ページヒーロー（サブページ用）
============================================ */
.page-hero {
    padding: 160px 0 80px; background: var(--white);
    position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; top: 0; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--green-05) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 7vw, 80px); font-weight: 700;
    color: var(--black); line-height: 1.15; margin-bottom: 12px;
}
.page-hero-subtitle {
    font-size: 15px; color: var(--gray); font-weight: 500;
    letter-spacing: 0.08em;
}
.page-hero-desc {
    font-size: 15px; line-height: 2.2; color: var(--gray-dark);
    margin-top: 24px; max-width: 640px;
}
.page-hero-bar {
    display: block; width: 40px; height: 3px;
    background: var(--green); margin-top: 20px;
}
.page-hero-image {
    margin-top: 60px; width: 100%; height: clamp(250px, 35vw, 450px);
    object-fit: cover; border-radius: 12px;
}

/* ============================================
   パンくずリスト
============================================ */
.breadcrumb {
    padding: 100px 0 0; font-size: 13px; color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 8px; }

/* ============================================
   ボタン類
============================================ */
.btn-outline-green {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 40px; border: 2px solid var(--green);
    color: var(--green); font-size: 14px; font-weight: 600;
    border-radius: 50px; letter-spacing: 0.04em;
}
.btn-outline-green:hover {
    background: var(--green); color: var(--white);
    transform: translateY(-2px);
}
.btn-filled-green {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 40px; background: var(--green);
    color: var(--white); font-size: 14px; font-weight: 600;
    border-radius: 50px; border: none; cursor: pointer;
    letter-spacing: 0.04em;
}
.btn-filled-green:hover {
    background: var(--green-dark); color: var(--white);
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,168,107,0.3);
}

/* ============================================
   CONTACT / RECRUIT CTA
============================================ */
.cta-section { display: grid; grid-template-columns: 1fr 1fr; }
.cta-block { padding: 80px 60px; }
.cta-block-contact { background: var(--green); color: var(--white); }
.cta-block-recruit { background: var(--contact-bg); color: var(--white); }

.cta-block-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.cta-block-heading-en {
    font-family: 'Inter', sans-serif;
    font-size: clamp(28px, 3vw, 36px); font-weight: 800;
}
.cta-block-heading-ja { font-size: 14px; font-weight: 500; opacity: 0.8; }
.cta-block p { font-size: 14px; line-height: 2; opacity: 0.85; margin-bottom: 30px; }

.cta-block-btn {
    display: inline-flex; align-items: center; justify-content: space-between;
    padding: 14px 28px; border: 1px solid rgba(255,255,255,0.5);
    color: var(--white); font-size: 13px; font-weight: 600;
    border-radius: 4px; max-width: 220px; letter-spacing: 0.04em;
}
.cta-block-btn:hover {
    background: rgba(255,255,255,0.15); color: var(--white);
    border-color: rgba(255,255,255,0.8);
}
.cta-block-btn span { margin-left: 16px; font-size: 16px; }

/* ============================================
   FOOTER
============================================ */
.footer { background: var(--footer-bg); color: var(--white); padding: 80px 0 40px; }
.footer-inner {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 80px; margin-bottom: 60px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.footer-logo-icon {
    width: 32px; height: 32px; object-fit: contain;
}
.footer-logo-text {
    font-family: 'Inter', sans-serif; font-size: 20px;
    font-weight: 800; letter-spacing: 0.05em;
}
.footer-nav-area { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-nav-col h5 { font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-nav-col a {
    display: block; font-size: 12px; color: rgba(255,255,255,0.5);
    margin-bottom: 10px; font-weight: 400;
}
.footer-nav-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 300; }
.footer-privacy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-privacy:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   スクロールアニメーション
============================================ */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-scale {
    opacity: 0; transform: scale(0.92);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .container, .container-wide { padding: 0 30px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-nav-area { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { padding: 0 0 0 20px; height: 64px; }
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .container, .container-wide { padding: 0 20px; }
    .page-hero { padding: 120px 0 60px; }
    .cta-section { grid-template-columns: 1fr; }
    .cta-block { padding: 60px 24px; }
    .footer-nav-area { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
