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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.header__nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.header__nav a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.header__nav a:hover {
    opacity: 0.5;
}

/* メイン */
.main {
    padding-top: 64px;
}

/* ヒーロー */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0C447C;
}

.hero__inner {
    text-align: center;
    padding: 0 40px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: #fff;
}

.hero__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero__btn {
    display: inline-block;
    padding: 16px 48px;
    background: #378ADD;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: background 0.2s;
    border: none;
}

.hero__btn:hover {
    background: #185FA5;
}

/* Works プレビュー */
.works-preview {
    padding: 100px 40px;
}

.works-preview__inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.works-preview h2 {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
    text-align: center;
}

.works-preview__item {
    margin-bottom: 40px;
}

.works-preview__item h3 {
    margin-top: 12px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #333;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    margin-top: 40px;
}

.btn:hover {
    background: #333;
    color: #fff;
}

/* フッター */
.footer {
    background: #333;
    color: #fff;
    padding: 40px;
    text-align: center;
    font-size: 0.85rem;
}
/* セクション共通 */
.section-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 64px;
    text-align: center;
}

/* About */
.about {
    padding: 80px 40px;
}

.about__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about__text h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.about__text p {
    color: #555;
    margin-bottom: 16px;
}

.about__table {
    width: 100%;
    border-collapse: collapse;
}

.about__table th,
.about__table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    text-align: left;
}

.about__table th {
    width: 120px;
    color: #999;
    font-weight: 400;
}

/* Skills */
.skills {
    padding: 80px 40px;
    background: #f8f8f8;
}

.skills__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skills__item {
    background: #fff;
    padding: 40px;
}

.skills__item h2 {
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.skills__item ul {
    list-style: none;
}

.skills__item li {
    font-size: 0.9rem;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Contact */
.contact {
    padding: 80px 40px;
}

.contact__inner {
    max-width: 680px;
    margin: 0 auto;
}

.contact__text {
    text-align: center;
    color: #666;
    margin-bottom: 48px;
}

/* Works一覧 */
.works {
    padding: 80px 40px;
}

.works__inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.works__item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

.works__item h2 {
    font-size: 1rem;
    margin-top: 12px;
}

/* Works詳細 */
.works-single {
    padding: 120px 40px;
}

.works-single__inner {
    max-width: 800px;
    margin: 0 auto;
}

.works-single__title {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.works-single__thumb {
    margin-bottom: 40px;
}

.works-single__thumb img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: top;
}

.works-single__content {
    margin-bottom: 64px;
    color: #555;
    line-height: 1.9;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

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

    .skills__grid {
        grid-template-columns: 1fr;
    }

    .works__grid {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2rem;
    }
}

.works__skills {
    font-size: 0.8rem;
    color: #378ADD;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

.works__period {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.works-single__meta {
    margin-bottom: 48px;
    border-top: 1px solid #eee;
}

.works-single__meta-item {
    display: flex;
    gap: 40px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.works-single__meta-item dt {
    width: 120px;
    color: #999;
    flex-shrink: 0;
}

.works-single__meta-item dd a {
    color: #378ADD;
    text-decoration: underline;
}

.about__brand {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.about__brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: #378ADD;
}

.about__brand-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

.works-single__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.works-single__image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top;
}

/* ハンバーガーメニュー */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.header__hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Contactフォーム */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: inherit;
}

.wpcf7-form textarea {
    height: 160px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 16px 48px;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.wpcf7-form input[type="submit"]:hover {
    background: #555;
}

@media (max-width: 768px) {
    .header__hamburger {
        display: flex;
    }

    .header__nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 99;
    }

    .header__nav.is-open {
        display: block;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .header__nav li {
        border-bottom: 1px solid #eee;
    }

    .header__nav a {
        display: block;
        padding: 16px 40px;
        font-size: 1rem;
    }
}

/* ページタイトル余白削減 */
.section-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 64px;
    margin-top: 0;
    text-align: center;
    padding-top: 0;
}

/* Worksカードホバーエフェクト */
.works__item a,
.works-preview__item a {
    display: block;
    transition: opacity 0.2s;
}

.works__item a:hover,
.works-preview__item a:hover {
    opacity: 0.7;
}

/* スマホWorksプレビュー2列 */
@media (max-width: 768px) {
    .works-preview__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .works-preview__item h3 {
        font-size: 0.85rem;
    }

    /* Aboutテーブルスマホ対応 */
    .about__table th,
    .about__table td {
        display: block;
        width: 100%;
    }

    .about__table th {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .about__table td {
        padding-top: 4px;
        padding-left: 0;
    }
}