/*
 * リペア工房 彩 - 共通スタイル
 * Premium Design - 高級感のあるデザイン
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

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

:root {
    --primary-color: #1c4a3e;
    --secondary-color: #b8860b;
    --accent-color: #c9a962;
    --text-color: #2c2c2c;
    --light-bg: #fafafa;
    --white: #FFFFFF;
    --beige: #f8f6f3;
    --dark-beige: #e5e2dc;
    --border-radius: 4px;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --sidebar-width: 80px;
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-color);
    line-height: 1.9;
    background-color: var(--white);
    font-weight: 300;
    letter-spacing: 0.02em;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* メインコンテンツエリア（サイドバー分の余白） */
.main-content {
    margin-right: var(--sidebar-width);
}

/* ============================================
   右側固定サイドバー
   ============================================ */
.fixed-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    z-index: 1000;
    border-left: 1px solid var(--dark-beige);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.sidebar-hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 15px;
    transition: var(--transition);
}

.sidebar-hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.sidebar-hamburger:hover span {
    background-color: var(--secondary-color);
}

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

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

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

.sidebar-logo {
    writing-mode: vertical-rl;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.sidebar-logo img {
    max-width: 60px;
    max-height: 150px;
    object-fit: contain;
    writing-mode: horizontal-tb;
}

.sidebar-sns {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-sns a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-sns a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* SNS Icon Style */
.sidebar-sns a.sns-icon {
    font-size: 14px;
    padding: 8px 0;
    height: auto;
    width: 30px;
}

.sidebar-sns a.sns-icon i {
    font-size: 14px;
}

.footer-sns a.sns-icon {
    font-size: 16px;
}

.footer-sns a.sns-icon i {
    font-size: 16px;
}

/* ============================================
   フルスクリーンオーバーレイメニュー
   ============================================ */
.overlay-menu {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background-color: var(--beige);
    z-index: 999;
    padding: 60px 60px 40px;
    transition: right 0.5s ease;
    overflow-y: auto;
}

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

.overlay-menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.overlay-menu-bg.active {
    opacity: 1;
    visibility: visible;
}

.overlay-nav {
    margin-bottom: 30px;
}

.overlay-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.overlay-nav-item {
    border-bottom: 1px solid var(--dark-beige);
}

.overlay-nav-item a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    font-size: 14px;
    letter-spacing: 2px;
    transition: var(--transition);
}

.overlay-nav-item a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.overlay-nav-num {
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    color: var(--primary-color);
}

.overlay-sub-nav {
    margin-top: 40px;
}

.overlay-sub-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.overlay-sub-nav-item a {
    font-size: 12px;
    letter-spacing: 1px;
    color: #666;
    transition: var(--transition);
}

.overlay-sub-nav-item a:hover {
    color: var(--primary-color);
}

.overlay-contact-info {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--dark-beige);
}

.overlay-tel {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
}

.overlay-address {
    font-size: 13px;
    line-height: 2;
    color: #666;
}

/* ============================================
   SCROLLインジケーター
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    right: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.scroll-text {
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--white);
    font-family: 'Times New Roman', serif;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--white);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        top: -30px;
    }
    100% {
        top: 100%;
    }
}

/* ============================================
   PAGE TOP（縦書き）
   ============================================ */
.page-top-vertical {
    position: fixed;
    bottom: 100px;
    right: calc(var(--sidebar-width) + 20px);
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.page-top-vertical.visible {
    opacity: 1;
    visibility: visible;
}

.page-top-vertical:hover {
    color: var(--secondary-color);
}

.page-top-vertical::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 15px;
    background-color: var(--primary-color);
}

/* ============================================
   ヘッダー（design69スタイル）
   ============================================ */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: var(--sidebar-width);
    z-index: 100;
    padding: 30px 50px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

.logo-small {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-tel {
    color: var(--white);
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-region {
    color: var(--white);
    font-size: 12px;
    opacity: 0.9;
}

/* ============================================
   コンテナ
   ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   セクション
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-title-en {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: normal;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title-ja {
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

/* ============================================
   装飾要素（ブロブ）
   ============================================ */
.blob-decoration {
    position: absolute;
    border-radius: 50%;
    background-color: var(--beige);
    z-index: -1;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.rectangle-decoration {
    position: absolute;
    background-color: var(--beige);
    z-index: -1;
}

/* ============================================
   ボタン
   ============================================ */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004d00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 100, 0, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a8f89;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(32, 178, 170, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* VIEW MOREボタン（design69スタイル） */
.btn-viewmore {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 13px;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-viewmore::after {
    content: '→';
    transition: var(--transition);
}

.btn-viewmore:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-viewmore:hover::after {
    transform: translateX(5px);
}

/* ============================================
   カード
   ============================================ */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-text {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* ============================================
   グリッドレイアウト
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ============================================
   番号付きセクション
   ============================================ */
.numbered-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.numbered-section.reverse {
    direction: rtl;
}

.numbered-section.reverse > * {
    direction: ltr;
}

.section-number {
    font-family: 'Times New Roman', serif;
    font-size: 120px;
    font-weight: normal;
    color: var(--beige);
    line-height: 1;
    position: absolute;
    top: -30px;
    left: -20px;
    z-index: -1;
}

.section-number-small {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-number-small::before {
    content: '';
    width: 30px;
    height: 1px;
    background-color: var(--primary-color);
}

/* ============================================
   フッター（分割デザイン）
   ============================================ */
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.footer-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.footer-content {
    background-color: var(--beige);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info p {
    font-size: 14px;
    line-height: 2;
    color: #666;
}

.footer-tel {
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.footer-btn {
    margin-bottom: 30px;
}

.footer-sns {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-sns a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-sns a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    background-color: #2C2C2C;
    color: var(--white);
    padding: 15px 40px;
    text-align: center;
    font-size: 12px;
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 60px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .numbered-section {
        gap: 50px;
    }
    
    .section-title-en {
        font-size: 36px;
    }
}

/* SP版のみ表示するクラス */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: block;
    }
    
    :root {
        --sidebar-width: 0px;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .fixed-sidebar {
        display: none;
    }
    
    .overlay-menu {
        width: 100%;
        right: -100%;
        padding: 50px 30px 30px;
    }
    
    .overlay-nav-item a {
        padding: 14px 0;
    }
    
    .header {
        display: none;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 5px;
    }
    
    .mobile-hamburger {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 5px;
    }
    
    .mobile-hamburger span {
        width: 25px;
        height: 2px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }
    
    .mobile-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title-en {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .numbered-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .numbered-section.reverse {
        direction: ltr;
    }
    
    .footer {
        grid-template-columns: 1fr;
    }
    
    .footer-image {
        min-height: 250px;
    }
    
    .footer-content {
        padding: 40px 20px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .page-top-vertical {
        right: 20px;
        bottom: 80px;
    }
    
    .scroll-indicator {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-title-en {
        font-size: 24px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .logo {
        font-size: 18px;
    }
}
