/* ============================================
   株式会社リンク ホームページ - グローバルスタイル
   
   このファイルはすべてのページで使用されます。
   色、フォント、レイアウトなどの統一的なスタイルを定義しています。
   ============================================ */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #6B6B63;
    background-color: #F5F1E8;
    line-height: 1.6;
}

/* ============================================
   コンテナ
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   ナビゲーション
   ============================================ */

nav {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(139, 139, 126, 0.1);
    transition: all 0.3s ease;
}

nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav .container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 1rem;
    transition: padding 0.3s ease;
    position: relative;
}

nav.fixed .container {
    padding: 0.5rem 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s;
    text-decoration: none;
    grid-column: 1;
}

nav ul {
    grid-column: 2;
    justify-self: center;
}

.logo-section:hover {
    opacity: 0.8;
}

.logo-section img {
    height: 3rem;
    width: auto;
    transition: height 0.3s ease;
}

nav.fixed .logo-section img {
    height: 2.5rem;
}

.company-name {
    display: none;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    color: #6B6B63;
    font-size: 1.125rem;
    transition: font-size 0.3s ease;
}

nav.fixed .company-name {
    font-size: 1rem;
}

@media (min-width: 640px) {
    .company-name {
        display: inline;
    }
}

nav ul {
    display: none;
    gap: 2rem;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B6B63;
    transition: font-size 0.3s ease, gap 0.3s ease;
    margin: 0;
    padding: 0;
}

nav.fixed ul {
    font-size: 0.8rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    nav ul {
        display: flex;
    }
}

nav a, nav button {
    position: relative;
    color: #6B6B63;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 0;
}

nav a:hover, nav button:hover {
    color: #C97C5A;
}

nav a::after, nav button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C97C5A;
    transition: width 0.3s;
}

nav a:hover::after, nav button:hover::after {
    width: 100%;
}

/* ============================================
   ボタン
   ============================================ */

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.btn-primary {
    background-color: #C97C5A;
    color: white;
}

.btn-primary:hover {
    background-color: #b86a48;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #C97C5A;
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: white;
}

/* ============================================
   波線ディバイダー
   ============================================ */

svg.wave {
    display: block;
    width: 100%;
    height: 6rem;
}

/* ============================================
   フッター
   ============================================ */

footer {
    background-color: #6B6B63;
    color: white;
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   アニメーション
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
