/* =========================
タブレット・スマホ
========================= */

@media (max-width: 700px) {

/* =========================
   全体
========================== */

.container {
    width: min(100% - 30px, 1100px);
}


/* =========================
   ヘッダー
========================== */

.header-inner {
    position: relative;

    min-height: 68px;

    gap: 15px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-width: 130px;
    max-height: 40px;
}


/* =========================
   ハンバーガーボタン
========================== */

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 44px;
    height: 44px;

    padding: 0;
    margin-left: auto;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 3px 0;

    background: var(--navy);
}


/* =========================
   スマホ用メニュー
========================== */

.site-nav {
    display: none;

    position: absolute;

    top: 68px;
    left: 0;
    right: 0;

    padding: 10px 20px;

    background: #faf9f5;

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);

    z-index: 100;
}

.site-nav a {
    display: block;

    padding: 14px 5px;

    color: var(--navy);

    font-size: 0.9rem;
    white-space: nowrap;

    border-bottom: 1px solid var(--border-color);
}

.site-nav a:last-child {
    border-bottom: none;
}


/* =========================
   メニューを開いた状態
========================== */

.site-header.menu-open .site-nav {
    display: block;
}


/* =========================
   ヒーロー
========================== */

.hero {
    padding: 85px 0 80px;
}

.hero h1 {
    font-size: 2.7rem;
}

.hero-description {
    font-size: 0.88rem;
}


/* =========================
   About
   Works
   Skills
   Profile
========================== */

.about-section,
.works-section,
.skills-section,
.profile-section {
    padding: 75px 0;
}

.about-section h1,
.works-section h1,
.contact-section h1 {
    font-size: 2.2rem;
}

.about-section h2,
.works-section h2,
.skills-section h2,
.profile-section h2 {
    font-size: 2rem;
}


/* =========================
   About
========================== */

.about-grid {
    grid-template-columns: 1fr;

    gap: 15px;
}

.about-item {
    padding: 25px;
}


/* =========================
   Profile
========================== */

.profile-content {
    width: 100%;
}


/* =========================
   Skills
========================== */

.skills-list {
    gap: 8px;
}

.skills-list span {
    padding: 8px 13px;

    font-size: 0.8rem;
}


/* =========================
   Works
========================== */

.works-grid {
    grid-template-columns: 1fr;

    gap: 15px;
}

.work-card-body {
    padding: 25px;
}


/* =========================
   Contact
========================== */

.contact-section {
    padding: 80px 0;
}

.contact-section h1,
.contact-section h2 {
    font-size: 2.2rem;
}

.contact-section p {
    font-size: 0.9rem;
}


/* =========================
   Contact Form 7
========================== */

.contact-form {
    margin-top: 35px;

    padding: 25px 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    font-size: 16px;
}

.contact-form input[type="submit"] {
    width: 100%;
}


/* =========================
   セクション内ボタン
========================== */

.section-more {
    margin-top: 35px;
}


/* =========================
   Footer
========================== */

.footer-inner {
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;
}

.footer-nav {
    flex-wrap: wrap;

    gap: 15px;
}


/* =========================
   個別ページ
========================== */

.work-detail {
    padding: 60px 0;
}

.work-detail-title {
    font-size: 2rem;
}


/* =========================
   404
========================== */

.error-section {
    padding: 100px 0;
}

.error-section h1 {
    font-size: 2.2rem;
}

.error-buttons {
    flex-direction: column;
}

.error-buttons .button {
    width: 100%;
    max-width: 280px;

    text-align: center;
}


}