/* カラー・フォント定義 */
:root {
    --oak-beige: #e9e0d2;    /* 温かみのある木目調ベージュ */
    --shelf-gray: #f5f5f5;   /* 清潔な棚の白 */
    --accent-wood: #8d6e63;  /* 濃い木の茶色 */
    --text-main: #2c3e50;    /* 深みのある紺グレー */
    --pure-white: #ffffff;
    --font-standard: 'Zen Kaku Gothic New', sans-serif;
}

/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--shelf-gray);
    color: var(--text-main);
    font-family: var(--font-standard);
    line-height: 1.8;
    font-size: 18px;
}

/* ヘッダー */
header {
    height: 80px;
    background-color: var(--pure-white);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--oak-beige);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo span {
    background-color: var(--oak-beige);
    padding: 2px 8px;
    margin-left: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-wood);
}

/* ヒーロー：棚をイメージした非対称レイアウト */
.hero-shelf {
    padding: 60px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.hero-box {
    background-color: var(--pure-white);
    padding: 40px;
    border: 1px solid var(--oak-beige);
}

.main-visual {
    padding: 0;
    overflow: hidden;
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box-tag {
    color: var(--accent-wood);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--accent-wood);
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 20px;
    width: fit-content;
}

.text-content h1 {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--accent-wood);
}

/* ボックスグリッドセクション */
.grid-section {
    padding: 100px 20px;
    background-color: var(--pure-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--oak-beige);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 15px;
}

.module-item {
    border: 1px solid var(--oak-beige);
    display: flex;
    align-items: center;
    padding: 40px;
}

.module-inner {
    width: 100%;
}

.item-light { background-color: var(--shelf-gray); }
.item-dark { background-color: var(--oak-beige); }
.item-accent { background-color: var(--accent-wood); color: #fff; }

.item-img {
    padding: 0;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.item-img img:hover {
    transform: scale(1.05);
}

.num {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

.module-item h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.inline-link {
    color: var(--accent-wood);
    text-decoration: underline;
    font-weight: 700;
    margin-top: 20px;
    display: block;
}

/* ワイドバナー */
.wide-banner {
    padding: 120px 40px;
    background-color: var(--oak-beige);
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* フッター */
footer {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--pure-white);
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* レスポンシブ */
@media (max-width: 950px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .module-item {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}