@charset "UTF-8";

/* =========================================
   Base Setup (UOSHO)
   ========================================= */
:root {
    --navy: #0f2350;       /* 濃紺（メインカラー） */
    --white: #ffffff;
    --gray-bg: #f4f4f8;
    --gold: #c3a05f;       /* アクセント（品質・高級感） */
    --text-main: #1a1a1a;
    --font-mincho: 'Zen Old Mincho', serif; /* 和風の品格 */
    --font-gothic: 'Zen Kaku Gothic New', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-gothic);
    line-height: 2.0;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.4s ease; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
ul { list-style: none; }

/* 縦書きクラス */
.tategaki {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-mincho);
    letter-spacing: 0.2em;
}

/* アニメーション */
.fade-up {
    opacity: 0; transform: translateY(30px); transition: all 1s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 4%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    transition: 0.4s;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}
.header.scrolled {
    background: var(--navy);
    padding: 1rem 4%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-mincho);
    font-size: 2rem;
    font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.logo span {
    font-family: var(--font-gothic);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 400;
    opacity: 0.8;
}
/* 家紋風アイコン */
.logo::before {
    content: ''; display: block; width: 30px; height: 30px;
    border: 2px solid var(--white);
    transform: rotate(45deg);
    background: var(--gold);
}

.nav ul { display: flex; gap: 3rem; }
.nav a {
    font-family: var(--font-mincho);
    font-size: 1rem;
    position: relative;
}
.nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--gold); transition: 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.btn-contact-nav {
    border: 1px solid var(--white);
    padding: 0.5rem 2rem;
    font-family: var(--font-gothic);
    font-size: 0.9rem;
}
.btn-contact-nav:hover { background: var(--white); color: var(--navy); }

.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 30px; height: 2px; background: #fff; margin: 8px 0; }

/* =========================================
   Hero Section (Dynamic Splash)
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transform: scale(1);
    animation: zoom 20s infinite alternate;
    z-index: -1;
}
@keyframes zoom { to { transform: scale(1.1); } }

/* 波のようなカット */
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0% 100%);
}

.hero-content {
    position: absolute;
    top: 50%; left: 10%; transform: translateY(-50%);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: row-reverse; /* 縦書きを右から左へ */
    align-items: flex-start;
    gap: 2rem;
}
.hero-title {
    font-size: 3.5rem;
    height: 400px;
    line-height: 1.5;
    font-weight: 700;
    border-right: 1px solid rgba(255,255,255,0.5);
    padding-right: 2rem;
}
.hero-sub {
    font-size: 1.2rem;
    height: 300px;
    margin-top: 3rem;
}

/* =========================================
   Layout & Components
   ========================================= */
.section { padding: 8rem 5%; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

/* 和風セクションヘッダー */
.section-header {
    text-align: center; margin-bottom: 5rem;
}
.section-header span {
    display: block; color: var(--gold); font-size: 0.9rem; letter-spacing: 0.2em; margin-bottom: 1rem;
    font-family: var(--font-gothic);
}
.section-header h2 {
    font-family: var(--font-mincho); font-size: 2.5rem; color: var(--navy);
}

/* 2 Column (Image & Text) */
.split-box {
    display: flex; align-items: center; margin-bottom: 8rem;
}
.split-box:nth-child(even) { flex-direction: row-reverse; }
.split-img { flex: 1; height: 500px; position: relative; }
/* 画像を少しずらす演出 */
.split-img img {
    width: 90%; height: 90%;
    position: absolute; top: 0; left: 0; z-index: 2;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}
.split-img::before {
    content: ''; position: absolute; bottom: 0; right: 0; width: 90%; height: 90%;
    background: var(--navy); z-index: 1;
}
.split-box:nth-child(even) .split-img img { left: auto; right: 0; }
.split-box:nth-child(even) .split-img::before { right: auto; left: 0; }

.split-text { flex: 1; padding: 4rem; }
.split-text h3 {
    font-family: var(--font-mincho); font-size: 2rem; margin-bottom: 2rem;
    color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 1rem; display: inline-block;
}

/* Service Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card-simple {
    background: #fff; padding: 0; transition: 0.3s;
    border: 1px solid #eee;
}
.card-simple:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img-top { height: 250px; }
.card-body { padding: 2rem; text-align: center; }
.card-title {
    font-family: var(--font-mincho); font-size: 1.4rem; margin-bottom: 1rem; color: var(--navy);
}

/* Button */
.btn-navy {
    display: inline-block; background: var(--navy); color: #fff;
    padding: 1rem 3rem; font-family: var(--font-gothic); letter-spacing: 0.1em;
    transition: 0.3s; border: 1px solid var(--navy);
}
.btn-navy:hover { background: #fff; color: var(--navy); }

/* =========================================
   Sub Pages
   ========================================= */
.page-header {
    height: 50vh;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}
.page-header-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.6;
}
.page-title-wrap {
    position: relative; z-index: 2; text-align: center;
}
.page-title {
    font-family: var(--font-mincho); font-size: 3rem; margin-bottom: 1rem;
}
.page-sub {
    font-size: 1rem; letter-spacing: 0.2em; color: var(--gold);
}
/* 波の下部装飾 */
.page-header::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Quality Points */
.quality-list {
    display: flex; justify-content: space-between; gap: 2rem;
}
.quality-item {
    text-align: center; width: 30%;
}
.quality-num {
    display: block; font-family: var(--font-mincho); font-size: 4rem; color: var(--gold);
    line-height: 1; margin-bottom: 1rem; opacity: 0.5;
}

/* Company Table */
.company-info {
    width: 100%; border-top: 2px solid var(--navy); margin-top: 2rem;
}
.company-info th, .company-info td {
    padding: 1.5rem; border-bottom: 1px solid #ddd; text-align: left;
}
.company-info th { width: 30%; background: #f9f9f9; font-weight: normal; }

/* Form */
.form-area { max-width: 800px; margin: 0 auto; background: var(--gray-bg); padding: 4rem; }
.input-group { margin-bottom: 2rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-family: var(--font-mincho); }
input, textarea, select {
    width: 100%; padding: 1rem; border: 1px solid #ccc; background: #fff;
    font-family: inherit;
}
.btn-submit {
    width: 100%; padding: 1.2rem; background: var(--navy); color: #fff;
    border: none; font-size: 1.1rem; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: var(--gold); }

/* Footer */
.footer {
    background: var(--navy); color: #fff; padding: 5rem 5%;
    text-align: center; position: relative;
}
.footer-logo { font-family: var(--font-mincho); font-size: 2rem; margin-bottom: 2rem; }
.footer-nav { margin-bottom: 3rem; }
.footer-nav a { margin: 0 1rem; font-size: 0.9rem; opacity: 0.8; }
.footer-nav a:hover { opacity: 1; color: var(--gold); }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: block; }
    
    .hero-content { left: 5%; gap: 1rem; }
    .hero-title { font-size: 2.5rem; padding-right: 1rem; }
    
    .split-box, .split-box:nth-child(even) { flex-direction: column; gap: 2rem; }
    .split-img { width: 100%; height: 300px; }
    .split-text { padding: 0; }
    .grid-3, .quality-list { flex-direction: column; grid-template-columns: 1fr; }
    .quality-item { width: 100%; margin-bottom: 3rem; }
}