/* --- Base Styles --- */
:root {
    --bg-color: #F4F7F5; 
    --text-main: #2F3E35;
    --text-sage: #6B8E78; 
    --line-color: #CBD5D0;
    --footer-bg: #E8ECE9;
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Cinzel', serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 2.0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 0; 
}

a { text-decoration: none; color: inherit; }
img { width: 100%; height: auto; display: block; }

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.text-sage { color: var(--text-sage); }

.jp-title {
    font-family: var(--font-jp);
    font-weight: 500;
    letter-spacing: 0.15em;
    font-size: 1rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--text-sage);
}

.section-title {
    font-family: var(--font-jp);
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--text-main);
    border-bottom: 1px solid var(--line-color);
    display: inline-block;
    padding-bottom: 1rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    
    background-color: rgba(244, 247, 245, 0);
    color: #fff;
    border-bottom: 1px solid transparent;
    
    z-index: 1000;
    display: flex;
    align-items: center;
    
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                border-bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background-color: rgba(244, 247, 245, 0.95);
    color: var(--text-main);
    border-bottom: 1px solid var(--line-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-inner {
    width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo a {
    display: block;
    height: 50px;
}

.header-logo img {
    height: 100%;
    width: auto;
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:not(.scrolled) .header-logo img {
    filter: brightness(0) invert(1);
}

.header.scrolled .header-logo img {
    filter: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: inherit;
    transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover {
    color: var(--text-sage);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.15); 
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeInUp 2s ease-out;
    color: #fff; 
    padding-top: 60px;
}

.hero-title-main {
    font-size: 4rem;
    font-family: var(--font-en);
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    border-top: 1px solid rgba(255,255,255,0.8);
    display: inline-block;
    padding-top: 1.5rem;
    margin-top: 1rem;
    color: #f0f0f0;
}

/* --- Identity / Philosophy Section --- */
.identity {
    padding: 8rem 0 5rem;
    text-align: center;
    background-color: var(--bg-color);
    scroll-margin-top: 80px;
}

.philosophy-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
    color: var(--text-main);
}

/* --- Service Section --- */
.services {
    padding: 5rem 0;
    scroll-margin-top: 80px; 
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-item {
    background: #fff;
    padding: 3rem;
    border-top: 3px solid var(--text-sage);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-num {
    display: block;
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--line-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.service-desc {
    font-size: 0.95rem;
    color: #66756d;
    line-height: 1.8;
}

/* --- Works Section --- */
.works {
    padding: 8rem 0 10rem;
    scroll-margin-top: 80px;
}

.work-item {
    display: flex;
    align-items: center;
    margin-bottom: 8rem;
    flex-wrap: wrap;
}

.work-item:nth-child(even) {
    flex-direction: row-reverse;
}

.work-image {
    flex: 1 1 500px;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.work-image img {
    transition: transform 0.8s ease;
    width: 100%;
    transform: scale(1.2); 
}

.work-image:hover img {
    transform: scale(1.25);
}

.work-desc {
    flex: 1 1 300px;
    padding: 3rem;
    position: relative;
}

.work-desc h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--text-main);
}

/* ボタンを削除したため、下の余白を詰める */
.work-desc p {
    font-size: 0.95rem;
    color: #66756d;
    margin-bottom: 0; /* 変更箇所 */
}

/* --- Company Profile Section --- */
.company-profile {
    padding: 0 0 10rem;
    max-width: 800px;
    scroll-margin-top: 80px;
}

.profile-grid {
    display: grid;
    gap: 1.5rem;
    border-top: 1px solid var(--line-color);
    padding-top: 3rem;
}

.profile-grid dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 1.5rem;
}

.profile-grid dt {
    width: 150px;
    font-weight: 600;
    color: var(--text-sage);
    flex-shrink: 0;
}

.profile-grid dd {
    flex: 1;
    color: var(--text-main);
}

.map-link {
    font-size: 0.85rem;
    color: var(--text-sage);
    border-bottom: 1px dotted var(--text-sage);
    margin-left: 0.5rem;
    font-weight: 600;
}

.map-link:hover {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
}

/* --- Footer --- */
.footer {
    padding: 4rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #66756d;
    background-color: var(--footer-bg);
    scroll-margin-top: 80px;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-info h2 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.contact-detail {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-sage);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.footer-links a:hover {
    border-bottom: 1px solid var(--text-sage);
}

/* --- Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .header { height: 60px; }
    .nav { display: none; }
    
    .hero-title-main { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .profile-grid dt { width: 100%; margin-bottom: 0.5rem; }
    .work-desc { padding: 2rem 0; }
    .work-item { margin-bottom: 4rem; }
}
/* --- Privacy Policy Page Styles --- */
.privacy-page {
    padding: 140px 0 8rem;
    max-width: 800px;
}

.privacy-content {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-main);
}

.lead-text {
    margin-bottom: 4rem;
}

.privacy-content section {
    margin-bottom: 4rem;
}

.privacy-content h3 {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    color: var(--text-main);
    border-left: 4px solid var(--text-sage); /* 左に緑のラインを入れて見やすく */
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.policy-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
    color: #555;
}

.policy-list li {
    margin-bottom: 0.8rem;
}

/* 業務委託などのサブセクション用 */
.sub-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 4px;
}

.sub-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-sage);
    font-weight: 600;
}

.sub-section p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* お問い合わせ窓口ボックス */
.contact-box {
    background-color: #fff;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid var(--line-color);
}

.office-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}