/* リセットCSS・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ヘッダーのスタイル */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    border-bottom: 1px solid #222;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
    color: #fff;
}

.logo .subtitle {
    font-size: 10px;
    margin: 0;
    color: #777;
}

.nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav li a {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav li a span { font-size: 14px; }

/* メインコンテンツ */
main {
    margin-left: 0;
    padding-top: 40px;
}

/* ── Hero ── */
.hero {
    min-height: 0;
    padding: 60px 10% 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #fff;
    text-align: left;
    gap: 40px;
}

.hero-content {
    max-width: 500px;
    position: relative;
    z-index: 2;
    margin: 0;
    flex-shrink: 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #111;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #555;
    font-weight: 500;
}

/* ボタン：モノクローム */
.cta-button {
    display: inline-block;
    padding: 12px 40px;
    background: #2d2d2d;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, background 0.2s ease;
    margin-bottom: 50px;
}

.tags { justify-content: flex-start; }

.cta-button:hover {
    transform: translateY(-2px);
    background: #111;
}

/* タグ一覧 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: #f0f0f0;
    padding: 6px 15px;
    border-radius: 2px;
    font-size: 0.8rem;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Hero ビジュアル */
.hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: 58%;
    height: auto;
    opacity: 1;
    z-index: 2;
    flex-shrink: 0;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background: radial-gradient(ellipse at 40% 50%,
        rgba(80, 80, 80, 0.12) 0%,
        rgba(45, 45, 45, 0.08) 40%,
        transparent 70%
    );
    filter: blur(55px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: -20px;
    right: 20px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(45, 45, 45, 0.30) 0%, transparent 70%);
    filter: blur(22px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* ── Hero Slider ── */
.hero-slider {
    position: relative;
    z-index: 1;
    width: 100%;
}

.slide {
    display: none;
    animation: slideIn 0.6s ease;
}

.slide.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

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

.slide-mockup {
    position: relative;
    width: 100%;
    padding-bottom: 32px;
    padding-right: 32px;
}

.mockup-pc {
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        0 8px 0 rgba(0, 0, 0, 0.10),
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 40px 80px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.mockup-pc img { width: 100%; height: auto; display: block; }

.mockup-sp {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 0 rgba(0,0,0,0.08), 0 16px 36px rgba(0,0,0,0.16);
    border: 1px solid rgba(0,0,0,0.10);
}

.mockup-sp img { width: 100%; height: auto; display: block; }

.slide-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 2px;
}

.slide-num {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #aaa;
    margin-bottom: 0;
    flex-shrink: 0;
}

.slide-label::before {
    content: '';
    display: block;
    width: 1px;
    height: 14px;
    background: #ccc;
    flex-shrink: 0;
}

.slide-name {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 0;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.slide-type {
    font-size: 10px;
    color: #aaa;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-left: auto;
}

.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    justify-content: flex-start;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: #2d2d2d;
    width: 24px;
    border-radius: 2px;
}

/* ── マーキーストリップ ── */
.marquee-strip {
    width: 100%;
    overflow: hidden;
    background: #111;
    padding: 14px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 24s linear infinite;
}

.marquee-track span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #888;
    padding: 0 40px;
    white-space: nowrap;
}

.marquee-track span.accent {
    color: #555;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── セクションタイトル：大きな薄いナンバー付き ── */
.section-wrapper {
    position: relative;
}

.section-title {
    font-size: 3rem;
    letter-spacing: 4px;
    color: #2d2d2d;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: attr(data-num);
    position: absolute;
    top: -0.6em;
    left: -0.1em;
    font-size: 5em;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    letter-spacing: -0.02em;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Aboutセクション */
.about {
    padding: 120px 10%;
    background: #fafafa;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content { flex: 1; min-width: 0; }

.about-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container {
    width: 380px;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.about-subtitle {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #111;
}

.about-description {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: #555;
    font-weight: 400;
    text-align: justify;
}

/* Worksセクション */
.works {
    padding: 120px 10%;
    background: #fff;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.work-card {
    background: #fafafa;
    border-radius: 4px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ebebeb;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(45, 45, 45, 0.14);
}

.work-card-link { display: block; text-decoration: none; }

.work-mockup {
    position: relative;
    padding: 20px 20px 32px 20px;
}

.work-mockup-pc {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
}

.work-mockup-pc img { width: 100%; height: auto; display: block; }

.work-mockup-sp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    border: 1px solid rgba(0,0,0,0.08);
}

.work-mockup-sp img { width: 100%; height: auto; display: block; }

.work-info { padding: 0 20px 24px; }

.work-category {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555555;
    margin-bottom: 6px;
}

.work-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.work-desc {
    font-size: 12px;
    line-height: 1.8;
    color: #777;
    margin-bottom: 14px;
}

.work-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #2d2d2d;
    text-decoration: none;
    transition: opacity 0.2s;
}

.work-link:hover { opacity: 0.6; }

/* Skillsセクション */
.skills {
    padding: 120px 10%;
    background: #fafafa;
}

.skill-category { margin-top: 40px; }

.skill-category h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #111;
}

/* Serviceセクション */
.service {
    padding: 120px 10%;
    background: #fff;
}

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

.service-item {
    padding: 40px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.service-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #2d2d2d;
}

/* フッター */
.footer {
    padding: 60px 0;
    text-align: center;
    background: #0a0a0a;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #777;
    letter-spacing: 1px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-social a {
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header { padding: 0 20px; }
    .hero-title { font-size: 2rem; }
    .nav { display: none; }
    .about { padding: 80px 10%; }
    .about-inner { flex-direction: column-reverse; gap: 36px; }
    .photo-container { width: 280px; margin: 0 auto; }
    .section-title { font-size: 1.8rem; }
    .about-subtitle { font-size: 1.6rem; }
    .hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 50px 6% 50px;
    }
    .hero-visual { width: 100%; }
    .hero-visual::before, .hero-visual::after { display: none; }
    .slide-label { justify-content: center; }
    .slide-type { margin-left: 0; }
    .slider-dots { justify-content: center; }
    .works-grid { grid-template-columns: 1fr; }
    .work-card:first-child { grid-row: auto; }
    .service-grid { grid-template-columns: 1fr; }
    .tags { justify-content: center; }
}
