@charset "UTF-8";

/*
sp ~767px
pc 768px~
*/

/*====================
色・サイズ
====================*/
:root {
    --bg: #f7f4ec;
    --surface: #fffdf8;
    --primary: #4f7c6a;
    --primary_soft: #e3ede7;
    --accent: #e2b48c;
    --text: #3b4540;
    --muted: #68736d;
    --line: #e4ddcf;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(79, 124, 106, 0.10);
    --header_height: 64px;
    --font_jp: 'Zen Maru Gothic', sans-serif;
    --font_en: 'Quicksand', 'Zen Maru Gothic', sans-serif;
}

/*====================
基本
====================*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header_height);
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font_jp);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.pc_only {
    display: none;
}

@media screen and (min-width: 768px) {
    .pc_only {
        display: inline;
    }

    .sp_only {
        display: none;
    }
}

/*====================
ボタン
====================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 52px;
    padding: 0 1.8em;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn_primary {
    background-color: var(--primary);
    color: #fff;
}

.btn_ghost {
    border: 2px solid var(--primary);
    color: var(--primary);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
    }

    .btn_primary:hover {
        background-color: #3f6857;
    }

    .btn_ghost:hover {
        background-color: var(--primary_soft);
    }
}

/*====================
ヘッダー
====================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: var(--header_height);
    transition: box-shadow 0.3s;
}

/* 背景のぼかしは疑似要素にかける
   （header 自体に backdrop-filter を付けると、中のナビの position: fixed がヘッダーの中に閉じ込められるため） */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(247, 244, 236, 0.9);
    backdrop-filter: blur(6px);
}

.header.is_scrolled {
    box-shadow: 0 2px 12px rgba(59, 69, 64, 0.08);
}

.header_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.header_logo a {
    font-weight: 700;
    text-decoration: none;
}

.header_logo span {
    margin-left: 0.6em;
    color: var(--primary);
    font-family: var(--font_en);
    font-size: 0.85em;
}

/* ハンバーガーボタン */
.menu_btn {
    position: relative;
    z-index: 110;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--primary_soft);
    cursor: pointer;
}

.menu_btn span,
.menu_btn::before,
.menu_btn::after {
    content: "";
    position: absolute;
    left: 13px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--primary);
    transition: transform 0.3s, opacity 0.3s;
}

.menu_btn span {
    top: 21px;
}

.menu_btn::before {
    top: 15px;
}

.menu_btn::after {
    top: 27px;
}

.is_nav_open .menu_btn span {
    opacity: 0;
}

.is_nav_open .menu_btn::before {
    transform: translateY(6px) rotate(45deg);
}

.is_nav_open .menu_btn::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* ナビ（スマホ） */
.nav {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.is_nav_open .nav {
    visibility: visible;
    opacity: 1;
}

.nav ul {
    text-align: center;
}

.nav li + li {
    margin-top: 24px;
}

.nav a {
    font-family: var(--font_en);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
}

@media screen and (min-width: 768px) {
    .menu_btn {
        display: none;
    }

    .nav {
        position: static;
        display: block;
        background: none;
        visibility: visible;
        opacity: 1;
    }

    .nav ul {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .nav li + li {
        margin-top: 0;
    }

    .nav a {
        font-size: 1rem;
        transition: color 0.3s;
    }

    .nav a:hover {
        color: var(--primary);
    }

}

/*====================
ファーストビュー
====================*/
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header_height) + 48px) 20px 72px;
}

/* 背景のやわらかい円 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.hero::before {
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background-color: var(--primary_soft);
}

.hero::after {
    bottom: -80px;
    left: -100px;
    width: 260px;
    height: 260px;
    background-color: #f3e6d6;
}

.hero_inner {
    display: grid;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
}

/* 1カラムのときは真ん中にそろえる */
.hero_text {
    text-align: center;
}

.hero_title {
    margin-bottom: 20px;
    font-size: clamp(1.3rem, 6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.6;
}

.hero_lead {
    margin-bottom: 32px;
    color: var(--muted);
    /* スマホでも「使って、」で改行できる大きさにする */
    font-size: clamp(0.8rem, 3.7vw, 1rem);
}

.hero_btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ブラウザ風の枠で作品を重ねて見せる */
.hero_visual {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 12%;
}

.browser {
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.browser_bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background-color: #efe9dd;
}

.browser_bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #d8cfbe;
}

.browser_back {
    width: 78%;
    transform: rotate(-3deg);
}

.browser_front {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 78%;
    transform: rotate(2deg);
}

@media screen and (min-width: 768px) {
    .hero {
        padding: calc(var(--header_height) + 80px) 20px 120px;
    }

    .hero::before {
        width: 640px;
        height: 640px;
    }
}

@media screen and (min-width: 1024px) {
    .hero_inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero_text {
        text-align: left;
    }

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

/*====================
セクション共通
====================*/
.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section_head {
    margin-bottom: 48px;
    text-align: center;
}

.section_head_jp {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.section_head_en {
    position: relative;
    display: inline-block;
    font-family: var(--font_en);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

/* 見出しの下の小さな葉っぱ風の飾り */
.section_head_en::after {
    content: "";
    display: block;
    width: 36px;
    height: 8px;
    margin: 12px auto 0;
    border-radius: 8px 0;
    background-color: var(--accent);
}

@media screen and (min-width: 768px) {
    .section {
        padding: 112px 20px;
    }
}

/*====================
About
====================*/
.about_inner {
    display: grid;
    gap: 32px;
    justify-items: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.about_photo {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: 6px solid var(--primary_soft);
    border-radius: 50%;
    background-color: #f3e6d6;
    color: var(--primary);
    font-size: 5rem;
}

.about_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about_name {
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 700;
}

.about_name span {
    margin-left: 0.8em;
    color: var(--muted);
    font-family: var(--font_en);
    font-size: 0.9rem;
}

.about_text {
    margin-bottom: 24px;
}

.about_list {
    display: grid;
    gap: 8px;
}

.about_list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background-color: var(--primary_soft);
}

.about_list i {
    color: var(--primary);
    font-size: 1.2rem;
}

@media screen and (min-width: 768px) {
    .about_inner {
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 56px;
        padding: 56px;
    }

    .about_photo {
        width: 220px;
        height: 220px;
    }

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

/*====================
Skills
====================*/
/* 最後の段の数が少ないときも、真ん中にそろえて並べる */
.skill_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill_item {
    width: 100%;
}

.skill_item {
    padding: 32px 24px;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.skill_icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border-radius: 50%;
    background-color: var(--primary_soft);
    color: var(--primary);
    font-size: 2rem;
}

.skill_name {
    margin-bottom: 8px;
    font-family: var(--font_en);
    font-size: 1.15rem;
}

.skill_item p {
    color: var(--muted);
    font-size: 0.92rem;
    text-align: left;
}

@media screen and (min-width: 600px) {
    /* 2列 */
    .skill_item {
        width: calc((100% - 20px) / 2);
    }
}

@media screen and (min-width: 1024px) {
    /* 3列（5つなら 3つ＋2つ） */
    .skill_item {
        width: calc((100% - 40px) / 3);
    }
}

/*====================
Works
====================*/
/* Works の見出しの下の説明 */
.works_lead {
    margin: -24px 0 40px;
    color: var(--muted);
    text-align: center;
}

.work_list {
    display: grid;
    gap: 40px;
}

.work {
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

.work_thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #efe9dd;
}

.work_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
}

@media (hover: hover) {
    .work_thumb:hover img {
        transform: scale(1.04);
    }
}

.work_body {
    padding: 28px 24px 32px;
}

.work_tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 12px;
    border-radius: 999px;
    background-color: #f3e6d6;
    color: #8a5a36;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 個人制作のタグは、授業課題と色を変える */
.work_tag_personal {
    background-color: var(--primary_soft);
    color: var(--primary);
}

.work_title {
    margin-bottom: 8px;
    font-size: 1.3rem;
    line-height: 1.5;
}

.work_desc {
    margin-bottom: 16px;
    color: var(--muted);
}

.work_tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.work_tools li {
    padding: 2px 10px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-family: var(--font_en);
    font-size: 0.8rem;
    font-weight: 600;
}

/* 制作の詳細（開閉） */
.work_detail {
    margin-bottom: 20px;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
}

.work_detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.work_detail summary::-webkit-details-marker {
    display: none;
}

.work_detail summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.work_detail[open] summary::after {
    transform: rotate(-135deg);
}

.work_detail dl {
    padding-bottom: 16px;
    font-size: 0.92rem;
}

.work_detail dt {
    margin-top: 12px;
    color: var(--primary);
    font-weight: 700;
}

.work_detail dt:first-child {
    margin-top: 0;
}

.work_link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    color: var(--primary);
    font-weight: 700;
    text-underline-offset: 4px;
}

/* リンクが2つあるカード（サイトとデザインカンプ） */
.work_links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

@media screen and (min-width: 768px) {
    /* 2列にする。高さは同じ段のカードどうしでそろう */
    .work_list {
        grid-template-columns: repeat(2, 1fr);
    }

    .work {
        display: flex;
        flex-direction: column;
    }

    .work_body {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* タグは文字の幅のまま */
    .work_tag {
        align-self: flex-start;
    }

    /* 「サイトを見る」はカードのいちばん下にそろえる */
    .work_link,
    .work_links {
        margin-top: auto;
        align-self: flex-start;
    }

    .work_links .work_link {
        margin-top: 0;
    }
}

/*====================
Contact
====================*/
.contact_box {
    padding: 48px 24px;
    border-radius: var(--radius);
    background-color: var(--primary_soft);
    text-align: center;
}

.contact_text {
    margin-bottom: 28px;
}

.contact_btn {
    min-width: min(100%, 320px);
}

.contact_mail {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

/*====================
フッター
====================*/
.footer {
    padding: 24px 20px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
}

/*====================
スクロールでふわっと表示
====================*/
.js_fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s, transform 0.8s;
}

.js_fade.is_show {
    opacity: 1;
    transform: none;
}

/* 動きを減らす設定の人には、アニメーションをしない */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js_fade {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
