/* 株式会社零式 コーポレートサイト CSS */

/* ==========================================
フォント設定
========================================== */
/* マティス風フォント（角張ったゴシック体） */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* 全要素にフォントを適用 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Saira Condensed", "Noto Sans JP", "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
}

:root {
--primary-black: #000000;
--primary-white: #FFFFFF;
--gray-dark: #333333;
--gray-medium: #666666;
--gray-light: #F5F5F5;
--accent-color: #000000;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
font-family: "Saira Condensed", "Noto Sans JP", "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
color: var(--primary-black);
background-color: var(--primary-white);
line-height: 1.8;
font-size: 16px;
overflow-x: hidden;
letter-spacing: 0.05em;
}

/* ==========================================
共通レイアウト
========================================== */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 40px;
}

/* ==========================================
ヘッダー
========================================== */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: var(--primary-white);
z-index: 1000;
transition: var(--transition);
border-bottom: 2px solid var(--primary-black);
}

header.scrolled {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
position: relative;
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
color: var(--primary-black);
}

.logo img {
height: 50px;
margin-right: 15px;
}

.logo-text {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.1em;
}

/* ナビゲーション */
nav ul {
display: flex;
list-style: none;
gap: 40px;
}

nav a {
text-decoration: none;
color: var(--primary-black);
font-size: 15px;
font-weight: 600;
letter-spacing: 0.1em;
position: relative;
transition: var(--transition);
}

nav a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary-black);
transition: var(--transition);
}

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

nav a:hover {
opacity: 0.7;
}

/* ハンバーガーメニュー */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 6px;
}

.hamburger span {
width: 30px;
height: 3px;
background-color: var(--primary-black);
transition: var(--transition);
}

/* ==========================================
ヒーローセクション
========================================== */
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding-top: 100px;
overflow: hidden;
}

.hero::before {
content: '';
position: absolute;
top: 0;
right: -10%;
width: 70%;
height: 100%;
background: linear-gradient(135deg, transparent 50%, var(--gray-light) 50%);
z-index: -1;
}

.hero-content {
text-align: center;
z-index: 1;
}

.hero-logo {
width: 250px;
margin-bottom: 40px;
animation: fadeInUp 1s ease-out;
}

.hero h1 {
font-size: 48px;
font-weight: 700;
margin-bottom: 30px;
letter-spacing: 0.1em;
animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
font-size: 20px;
margin-bottom: 50px;
line-height: 1.8;
animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
display: flex;
gap: 30px;
justify-content: center;
animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
padding: 18px 50px;
text-decoration: none;
font-size: 16px;
font-weight: 700;
letter-spacing: 0.1em;
transition: var(--transition);
border: 2px solid var(--primary-black);
position: relative;
overflow: hidden;
}

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

.btn-primary::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background-color: var(--primary-white);
transform: translate(-50%, -50%);
transition: width 0.5s ease, height 0.5s ease;
z-index: -1;
}

.btn-primary:hover::before {
width: 100%;
height: 100%;
}

.btn-primary:hover {
color: var(--primary-black);
}

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

.btn-secondary::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background-color: var(--primary-black);
transform: translate(-50%, -50%);
transition: width 0.5s ease, height 0.5s ease;
z-index: -1;
}

.btn-secondary:hover::before {
width: 100%;
height: 100%;
}

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

/* ==========================================
セクション共通スタイル
========================================== */
section {
padding: 120px 0;
position: relative;
}

.section-title {
font-size: 42px;
font-weight: 700;
text-align: center;
margin-bottom: 20px;
letter-spacing: 0.1em;
position: relative;
display: inline-block;
width: 100%;
}

.section-subtitle {
font-size: 16px;
text-align: center;
margin-bottom: 80px;
color: var(--gray-dark);
letter-spacing: 0.05em;
}

/* ==========================================
サービスセクション
========================================== */
.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
}

.service-card {
background-color: var(--primary-white);
border: 2px solid var(--primary-black);
padding: 50px 40px;
transition: var(--transition);
position: relative;
}

.service-card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 0;
height: 0;
border-style: solid;
border-width: 0 40px 40px 0;
border-color: transparent var(--primary-black) transparent transparent;
transition: var(--transition);
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-number {
font-size: 14px;
font-weight: 700;
margin-bottom: 20px;
letter-spacing: 0.2em;
}

.service-card h3 {
font-size: 24px;
font-weight: 700;
margin-bottom: 20px;
}

.service-card p {
font-size: 15px;
line-height: 1.9;
}

/* ==========================================
実績セクション
========================================== */
.case-studies-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
}

.case-card {
background-color: var(--gray-light);
padding: 50px;
position: relative;
overflow: hidden;
transition: var(--transition);
}

.case-card::after {
content: '';
position: absolute;
bottom: 0;
left: -100%;
width: 100%;
height: 4px;
background-color: var(--primary-black);
transition: var(--transition);
}

.case-card:hover::after {
left: 0;
}

.case-card:hover {
background-color: var(--primary-white);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-industry {
font-size: 14px;
font-weight: 700;
margin-bottom: 15px;
letter-spacing: 0.1em;
}

.case-card h3 {
font-size: 22px;
font-weight: 700;
margin-bottom: 20px;
}

.case-card p {
font-size: 15px;
line-height: 1.9;
margin-bottom: 15px;
}

.case-team {
font-size: 14px;
font-weight: 600;
color: var(--gray-dark);
}

/* ==========================================
会社概要セクション
========================================== */
.vision-mission {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 50px;
margin-bottom: 80px;
}

.vm-card {
text-align: center;
padding: 40px;
border: 2px solid var(--primary-black);
background-color: var(--primary-white);
}

.vm-card h3 {
font-size: 20px;
font-weight: 700;
margin-bottom: 20px;
letter-spacing: 0.1em;
}

.vm-card p {
font-size: 15px;
line-height: 1.9;
}

.values-list {
list-style: none;
margin-top: 20px;
}

.values-list li {
font-size: 15px;
line-height: 2.2;
position: relative;
padding-left: 25px;
}

.values-list li::before {
content: '●';
position: absolute;
left: 0;
top: 0;
}

.company-info {
max-width: 800px;
margin: 0 auto;
}

.info-table {
width: 100%;
border-collapse: collapse;
}

.info-table tr {
border-bottom: 1px solid var(--gray-dark);
}

.info-table th {
text-align: left;
padding: 25px 20px;
font-weight: 700;
width: 200px;
background-color: var(--gray-light);
}

.info-table td {
padding: 25px 20px;
}

/* ==========================================
お問い合わせセクション
========================================== */
.contact-container {
max-width: 800px;
margin: 0 auto;
}

.contact-info {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
margin-bottom: 60px;
}

.contact-item {
text-align: center;
padding: 40px;
background-color: var(--gray-light);
}

.contact-item h3 {
font-size: 18px;
font-weight: 700;
margin-bottom: 20px;
}

.contact-item p {
font-size: 16px;
line-height: 1.8;
}

.contact-form {
display: flex;
flex-direction: column;
gap: 30px;
}

.form-group {
display: flex;
flex-direction: column;
}

.form-group label {
font-size: 14px;
font-weight: 700;
margin-bottom: 10px;
letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
padding: 15px;
border: 2px solid var(--primary-black);
font-size: 16px;
font-family: inherit;
transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--gray-dark);
}

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

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

/* ==========================================
フッター
========================================== */
footer {
background-color: var(--primary-black);
color: var(--primary-white);
padding: 60px 0 30px;
position: relative;
}

.footer-content {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 60px;
margin-bottom: 50px;
}

.footer-logo {
display: flex;
align-items: center;
margin-bottom: 20px;
}

.footer-logo img {
height: 50px;
margin-right: 15px;
filter: invert(1);
}

.footer-logo-text {
font-size: 18px;
font-weight: 700;
letter-spacing: 0.1em;
}

.footer-description {
font-size: 14px;
line-height: 1.8;
}

.footer-section h4 {
font-size: 16px;
font-weight: 700;
margin-bottom: 20px;
letter-spacing: 0.1em;
}

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

.footer-section ul li {
margin-bottom: 12px;
}

.footer-section ul li a {
color: var(--primary-white);
text-decoration: none;
font-size: 14px;
transition: var(--transition);
}

.footer-section ul li a:hover {
opacity: 0.7;
}

.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
font-size: 13px;
}

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

.fade-in-up {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
opacity: 1;
transform: translateY(0);
}

/* ==========================================
レスポンシブデザイン
========================================== */
@media (max-width: 1024px) {
.services-grid {
grid-template-columns: repeat(2, 1fr);
}

.vision-mission {
grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.container {
padding: 0 20px;
}

.header-content {
padding: 15px 20px;
}

nav {
display: none;
}

nav.mobile-active {
display: block;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: var(--primary-white);
border-bottom: 1px solid var(--primary-black);
}

nav.mobile-active ul {
flex-direction: column;
gap: 0;
}

nav.mobile-active ul li {
border-bottom: 1px solid var(--gray-light);
}

nav.mobile-active ul li a {
display: block;
padding: 20px;
}

.hamburger {
display: flex;
}

.hero h1 {
font-size: 32px;
}

.hero-subtitle {
font-size: 16px;
}

.cta-buttons {
flex-direction: column;
gap: 20px;
}

.section-title {
font-size: 32px;
}

.services-grid,
.case-studies-grid {
grid-template-columns: 1fr;
}

.contact-info {
grid-template-columns: 1fr;
}

.footer-content {
grid-template-columns: 1fr;
gap: 40px;
}

.info-table th {
width: 120px;
padding: 20px 15px;
}
}

@media (max-width: 480px) {
.hero h1 {
font-size: 24px;
}

.hero-logo {
width: 180px;
}

.section-title {
font-size: 26px;
}

.btn {
padding: 15px 30px;
font-size: 14px;
}
}
