@charset "UTF-8";

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'ヒラギノ角ゴ pro w3', 'hiragino kaku gothic pro', 'メイリオ', 'meiryo', 'ｍｓ ｐゴシック', sans-serif;
    background: #faf9f6;
    color: #333;
}

a {
    text-decoration: none;
    color: #00b4ff;
}

a:visited {
    color: #00b4ff;
}

a:hover {
    border-bottom: 1px solid #00b4ff;
}

a:has(img), a:has(img):hover, a:has(img):visited,
a:has(svg), a:has(svg):hover, a:has(svg):visited
{
    text-decoration: none;
	border: none;
	color: #333;
}

.top-page a:has(img):hover img 
{
    outline: 2px solid #333;
	outline-offset: 0;
}

.top-page #area-side-a a:has(img):hover img {
	outline:none;
}

/* Page Container */
#page {
    width: 100%;
    min-height: 100vh;
    background: #faf9f6;
}

#gallery-page {
    width: 100%;
    background: #faf9f6;
	max-width: 900px;
	margin: 40px auto 0 auto;
	padding: 0 2rem 0 2rem;
}

/* Header */
#area-header {
    padding: 20px 0;
}

/* Main Container */
#area-contents {
    display: flex;
    max-width: fit-content;
    margin: 0 auto;
    padding: 40px 60px;
    justify-content: flex-start;
}

/* Sidebar */
#area-side-a {
    width: 200px;
    flex-shrink: 0;
    margin-right: 100px;
    position: relative;
}

.sidebar-block {
    margin-bottom: 80px;
}

.sidebar-logo {
    margin-bottom: 30px;
}

.sidebar-logo img {
    display: block;
}

.sidebar-text {
    margin-bottom: 20px;
}

.sidebar-text img {
    display: block;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
	font-weight: 600;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.sidebar-menu a:hover {
	color: #00b4ff;
}

.sidebar-image {
    margin-top: 40px;
}

.sidebar-image img {
    display: block;
}

/* Main Content Area */
#area-main {
    flex: 0 0 auto;
}

/* Gallery Grid */
.gallery-row {
    display: flex;
/*     gap: 50px; */
    margin-bottom: 40px;
    align-items: flex-start;
    justify-content: flex-start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
	padding: 2px;
    max-width: 300px;
    min-width: 260px;
    display: flex;
    justify-content: center;
}

.gallery-item a {
    display: block;
    position: relative;
    line-height: 0;
}

.gallery-item img {
    display: block;
}

.gallery-item .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item a:hover .hover-img {
    opacity: 1;
}

/* Page Top Link */
.page-top {
    text-align: right;
    margin-top: 60px;
    padding: 20px 2rem 20px 0;
}

.page-top a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.page-top a:hover {
    opacity: 0.7;
}

.page-top svg {
    display: block;
}

/* Footer */
#area-footer {
    background: #faf9f6;
    padding: 30px 0;
    margin-top: 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: right;
}

.footer-content-sub {
/*     max-width: 900px; */
    margin: 0 auto;
    text-align: right;
}

.footer-content address,
.footer-content-sub address {
    font-style: normal;
    font-size: 11px;
    color: #666;
}
#back-works {
/*     max-width: 900px; */
    margin: 0 auto;
}

.g-title {
	letter-spacing: 8px;
}

.mw-1100 {
	max-width: 1100px!important;
}

.font-sm {
    font-size: 12px;
}

.center {
	text-align: center;
}

.left {
	text-align: left;
}

/* Responsive - Viewport handles scaling */
@media (max-width: 1024px) {
    #area-contents {
        padding: 40px 40px;
    }
	.g-title {
		letter-spacing: 4px;
	}
}
