:root {
    --main-gold: #b8862a;
    --main-text: #1a1a1a;
    --main-muted: #999999;
}

.main-page {
    padding-top: 80px;
    overflow: hidden;
    background: #ffffff;
    color: var(--main-text);
}

.main-content-width,
.main-products {
    width: min(1296px, calc(100% - 48px));
    margin: 0 auto;
}

.main-hero {
    position: relative;
    width: min(1840px, calc(100% - 80px));
    height: min(880px, calc((100vw - 80px) * .4783));
    min-height: 560px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.main-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(101.68deg, rgba(255,255,255,.82) 19.3%, rgba(255,255,255,0) 50.33%);
}

.main-hero-copy {
    position: absolute;
    top: 50%;
    left: max(64px, calc((100% - 1296px) / 2));
    z-index: 1;
    transform: translateY(-42%);
}

.main-hero h1 {
    margin: 0;
    color: #404040;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.main-hero h1 strong {
    color: var(--main-gold);
    font-weight: 700;
}

.main-hero-copy > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    margin-top: 70px;
    padding: 0 24px;
    border-radius: 4px;
    background: var(--main-gold);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.main-products {
    padding: 120px 0;
}

.main-products .main-section-head > div { width: min(852px, calc(100% - 112px)); }

.main-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.main-section-head span {
    display: block;
    margin-bottom: 26px;
    color: var(--main-gold);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.main-section-head h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}

.main-more {
    display: inline-flex;
    flex: 0 0 70px;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.main-more i { font-size: 34px; }
.main-products .main-more { flex-basis: 72px; width: 72px; height: 72px; }

.main-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.main-product-card {
    position: relative;
    display: flex;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #f2f2f2;
    color: var(--main-text);
}

.main-product-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.main-product-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}

.main-product-name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: rgba(26, 26, 26, .9);
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .25s ease, transform .25s ease;
}

.main-product-name strong { min-width: 0; font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
.main-product-name i { flex: 0 0 auto; font-size: 18px; }
.main-product-card:hover img, .main-product-card:focus-visible img { transform: scale(1.035); }
.main-product-card:hover .main-product-name, .main-product-card:focus-visible .main-product-name { opacity: 1; transform: translateY(0); }

.main-empty {
    width: 100%;
    color: var(--main-muted);
    text-align: center;
}

.main-empty-products,
.main-empty-gallery {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    border-radius: 10px;
    background: #f5f5f5;
}

.main-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.main-shortcuts a {
    position: relative;
    height: min(640px, 33.333vw);
    min-height: 360px;
    overflow: hidden;
}

.main-shortcuts a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.2);
    transition: background .2s ease;
}

.main-shortcuts a:hover::after { background: rgba(0,0,0,.08); }

.main-shortcuts img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-shortcuts strong {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    color: #ffffff;
    font-size: 45px;
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.main-gallery {
    padding: 150px 0 160px;
}

.main-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-top: 58px;
}

.main-gallery-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--main-text);
}

.main-gallery-card img {
    width: 100%;
    aspect-ratio: 1.25 / 1;
    border-radius: 10px;
    background: #f5f5f5;
    object-fit: cover;
}

.main-gallery-card strong {
    margin-top: 20px;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-gallery-card time {
    margin-top: 8px;
    color: var(--main-muted);
    font-size: 16px;
}

.main-notices {
    padding: 150px 0 170px;
    background: #f5f5f5;
}

.main-notice-list {
    margin-top: 54px;
    border-top: 1px solid #c8c8c8;
}

.main-notice-list a {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 140px;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid #d8d8d8;
    color: #444444;
}

.main-notice-list a > span { text-align: center; }
.main-notice-list a strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-notice-list a time { text-align: right; }
.main-notice-list .main-empty { padding: 60px 0; border-bottom: 1px solid #d8d8d8; }

@media (max-width: 1100px) {
    .main-hero { width: calc(100% - 48px); min-height: 560px; }
    .main-hero-copy { left: 56px; }
    .main-hero h1 { font-size: 40px; }
    .main-section-head h2 { font-size: 32px; }
    .main-product-grid, .main-gallery-grid { gap: 24px; }
    .main-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-shortcuts strong { font-size: 36px; }
}

@media (max-width: 760px) {
    .main-content-width, .main-products { width: calc(100% - 40px); }
    .main-hero { width: calc(100% - 24px); height: 620px; min-height: 0; border-radius: 10px; }
    .main-hero > img { object-position: 64% center; }
    .main-hero::after { background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.08)); }
    .main-hero-copy { top: auto; bottom: 70px; left: 28px; right: 20px; transform: none; }
    .main-hero h1 { font-size: 28px; }
    .main-hero-copy > a { height: 42px; margin-top: 34px; font-size: 16px; }
    .main-products, .main-gallery, .main-notices { padding-top: 80px; padding-bottom: 90px; }
    .main-section-head { align-items: flex-end; gap: 16px; }
    .main-section-head span { margin-bottom: 16px; font-size: 18px; }
    .main-section-head h2 { font-size: 25px; }
    .main-section-head h2 br { display: none; }
    .main-more { flex-basis: 52px; width: 52px; height: 52px; font-size: 30px; }
    .main-products .main-more { flex-basis: 52px; width: 52px; height: 52px; }
    .main-more i { font-size: 24px; }
    .main-products .main-section-head > div { width: auto; }
    .main-product-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
    .main-product-card { border-radius: 12px; }
    .main-product-image { padding: 20px; }
    .main-product-name { min-height: 72px; padding: 16px 20px; opacity: 1; transform: none; }
    .main-product-name strong { font-size: 19px; }
    .main-shortcuts { grid-template-columns: 1fr; }
    .main-shortcuts a { height: 360px; min-height: 0; }
    .main-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-notice-list a { grid-template-columns: 42px minmax(0, 1fr); padding: 12px 0; }
    .main-notice-list a time { grid-column: 2; margin-top: 5px; text-align: left; font-size: 13px; }
}

@media (max-width: 420px) {
    .main-gallery-grid { grid-template-columns: 1fr; }
    .main-shortcuts a { height: 300px; }
    .main-shortcuts strong { font-size: 30px; }
}
