/* ================================================
   03-layout.css - Layout & Structure
   休眠特許マッチング - yasutake.net
   トップページ専用
   ================================================ */

/* ===== HEADER ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--color-gray-100);
}

.top-header-inner {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.top-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.top-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-logo-img {
    height: 1.75rem;  /* 28px */
    width: auto;
    max-width: none;
}

/* デスクトップナビゲーション */
.top-desktop-nav {
    display: none;
    align-items: center;
    gap: var(--space-3);
}

.top-mobile-menu-btn {
    display: flex;
    align-items: center;
    padding: var(--space-2);
    color: var(--color-primary);
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.top-mobile-menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* モバイルメニュー */
.top-mobile-menu {
    display: none;
    padding-bottom: var(--space-4);
}

.top-mobile-menu.active {
    display: block;
}

.top-mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* ===== MAIN CONTENT ===== */
.top-main {
    padding-top: var(--header-height);
}

/* ===== SECTIONS ===== */
.top-section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.top-section-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* ===== FLEXBOX UTILITIES ===== */
.top-flex {
    display: flex;
}

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

.top-flex-row {
    flex-direction: row;
}

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

.top-items-start {
    align-items: flex-start;
}

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

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

.top-flex-1 {
    flex: 1 1 0%;
}

.top-flex-shrink-0 {
    flex-shrink: 0;
}

/* ===== GRID UTILITIES ===== */
.top-grid {
    display: grid;
}

.top-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.top-gap-3 {
    gap: var(--space-3);
}

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

.top-gap-6 {
    gap: var(--space-6);
}

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

/* ===== SPACING UTILITIES ===== */
.top-space-y-1 > * + * {
    margin-top: var(--space-1);
}

.top-space-y-4 > * + * {
    margin-top: var(--space-4);
}

.top-space-y-6 > * + * {
    margin-top: var(--space-6);
}

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

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

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

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

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

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

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

/* ===== WIDTH & HEIGHT UTILITIES ===== */
.top-w-full {
    width: 100%;
}

.top-h-full {
    height: 100%;
}

.top-max-w-3xl {
    max-width: 48rem;  /* 768px */
}

.top-max-w-4xl {
    max-width: 56rem;  /* 896px */
}

/* ===== POSITIONING ===== */
.top-relative {
    position: relative;
}

.top-absolute {
    position: absolute;
}

.top-overflow-hidden {
    overflow: hidden;
}

/* ===== TEXT ALIGNMENT ===== */
.top-text-center {
    text-align: center;
}

/* ===== DISPLAY UTILITIES ===== */
.top-hidden {
    display: none;
}

.top-block {
    display: block;
}
