/* ============================================
   CSS Variables - ミニマルデザインシステム
   ============================================ */
:root {
    /* カラー: モノトーン + ブルー */
    --black: #000000;
    --text-primary: #0A0A0A;
    --text-body: #333333;
    --text-muted: #999999;
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border: #E0E0E0;
    --accent: #0066CC;
    
    /* フォント */
    --font-primary: 'Inter', 'Noto Sans JP', sans-serif;
    
    /* スペーシング */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;
    --space-3xl: 12rem;
    --space-4xl: 16rem;
}

/* ============================================
   CSS Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--text-body);
    background-color: var(--white);
    line-height: 2;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

a:hover {
    border-bottom-color: var(--accent);
}

/* ============================================
   Typography
   ============================================ */
h1 {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 15vw, 7rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(0.9375rem, 2vw, 1rem);
    font-weight: 300;
    line-height: 2;
    letter-spacing: 0.02em;
}

p + p {
    margin-top: 2rem;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 4rem);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    border: none;
}

.logo a:hover {
    color: var(--accent);
    border: none;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-body);
    border: none;
}

.nav-list a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-list a {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-primary);
    border: none;
}

.mobile-nav-list a:hover {
    color: var(--accent);
}

/* ============================================
   Main Content
   ============================================ */
main {
    padding-top: 80px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: clamp(var(--space-2xl), 20vw, var(--space-4xl)) 0;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

.about-text p + p {
    margin-top: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.service-card {
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid var(--border);
    background-color: var(--white);
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
}

.service-link {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: none;
}

.service-link:hover {
    border-bottom: 1px solid var(--accent);
}

/* ============================================
   Achievement Section
   ============================================ */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1rem;
}

.achievement-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ============================================
   Area Section
   ============================================ */
.area-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.area-item {
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 300;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 1.25rem 4rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

.btn-primary:hover {
    background-color: var(--text-primary);
    border-bottom: none;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: clamp(6rem, 15vw, 10rem) 0 clamp(4rem, 10vw, 6rem);
    text-align: center;
    background-color: var(--bg-light);
}

.page-header h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
}

/* ============================================
   Company Pages
   ============================================ */
.company-info-section .company-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.company-image {
    margin: 4rem 0;
}

.company-image img {
    width: 100%;
    height: auto;
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.company-table th {
    width: 30%;
    font-weight: 400;
    color: var(--text-muted);
}

.company-table td {
    font-weight: 300;
}

.achievement-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
}

.achievement-detail-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
}

.achievement-detail-item h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.achievement-detail-item p {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent);
}

.strengths-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(3rem, 6vw, 4rem);
}

.strength-item h3 {
    margin-bottom: 1rem;
}

/* ============================================
   Service Pages
   ============================================ */
.service-intro-section {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.service-intro-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-content ul {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.service-detail-content li {
    list-style: disc;
    margin-bottom: 0.75rem;
}

.service-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 5vw, 3rem);
}

.target-item {
    padding: 2rem;
    border: 1px solid var(--border);
}

.target-item h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* ============================================
   Contact Pages
   ============================================ */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.contact-method-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
}

.contact-method-item h3 {
    margin-bottom: 1.5rem;
}

.contact-method-value {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-method-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.form-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 3rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.required {
    color: var(--accent);
    margin-left: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-body);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-privacy {
    margin-bottom: 3rem;
}

.form-privacy label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-privacy a {
    color: var(--accent);
}

.form-submit {
    text-align: center;
}

.form-message {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.form-message.success {
    color: var(--accent);
    border-color: var(--accent);
}

.form-message.error {
    color: #CC0000;
    border-color: #CC0000;
}

.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
}

.office-info-list {
    margin-top: 2rem;
}

.office-info-list dt {
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.office-info-list dd {
    font-weight: 300;
}

.office-map {
    min-height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: clamp(4rem, 10vw, 6rem) 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 4rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    border: none;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    border: none;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-license {
    margin-top: 0.5rem;
}

/* ============================================
   Animation
   ============================================ */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.is-visible {
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .about-content,
    .service-detail,
    .office-info-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .achievement-grid,
    .contact-methods-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .strengths-list,
    .target-grid,
    .achievement-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .area-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .area-item {
        text-align: center;
    }
}