@charset "UTF-8";

/* =========================
   Root / Base
========================= */
:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #fbfdff;
    --border: #d8e0e8;
    --text: #04395c;
    --text-light: #698197;
    --accent: #0071bc;
    --accent-soft: #eef5fb;
    --sub-accent: #f6ae00;
    --max-width: 1200px;
    --shadow-soft: 0 10px 30px rgba(19, 58, 89, 0.05);
    --shadow-card: 0 8px 24px rgba(4, 57, 92, 0.06);
    --radius: 18px;
    --radius-sm: 12px;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "游ゴシック", "Yu Gothic", sans-serif;
    line-height: 1.8;
}

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

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

a:hover {
    opacity: 0.75;
    transition-duration: 0.3s;
}

p {
    font-size: 1.7rem;
    margin: 0 0 1.2em;
}

ul,
ol {
    font-size: 1.7rem;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
    margin: 0 0 0.7em;
    color: var(--text);
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bolder;
}

/* =========================
   Header / Menu
========================= */
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
}

.menu-btn span::before {
    content: "MENU";
    font-size: 1.5rem;
    display: block;
    height: 0;
    color: #fff;
    position: absolute;
    top: 15px;
    right: 2px;
    transition: all 0.5s;
}

.menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked ~ .menu-btn span::before {
    content: "CLOSE";
}

#menu-btn-check {
    display: none;
}

.menu-content ul {
    padding: 70px 10px 0;
}

.menu-content ul li {
    list-style: none;
}

.menu-content ul li a {
    width: 100%;
    font-size: 1.6rem;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 0;
    position: relative;
    display: none;
}

.menu-content {
    position: fixed;
    width: 70px;
    height: 70px;
    top: 0;
    right: 0;
    z-index: 80;
    background-color: var(--accent);
    transition: all 0.5s;
}

#menu-btn-check:checked ~ .menu-content {
    width: 40vw;
    padding: 10%;
    height: 100%;
}

#menu-btn-check:checked ~ .menu-content ul li a {
    display: block;
}

/* =========================
   Header Title
========================= */
header h3 {
    position: fixed;
    top: 25px;
    left: 20px;
    z-index: 90;
}

header h3 a {
    color: var(--accent);
    font-size: 1.6rem;
}

/* =========================
   Slideshow / Main Visual
========================= */
.img-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.img-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.10) 68%,
        rgba(0, 0, 0, 0.22) 100%
    );
    pointer-events: none;
}

.img-01,
.img-02,
.img-03,
.img-04 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

.img-01 {
    background-image: url("../images/image04.jpg");
    background-position: center;
    animation: slide-animation-01 24s infinite;
}

.img-02 {
    background-image: url("../images/image01.jpg");
    background-position: center;
    animation: slide-animation-02 24s infinite;
}

.img-03 {
    background-image: url("../images/image02.jpg");
    background-position: center;
    animation: slide-animation-03 24s infinite;
}

.img-04 {
    background-image: url("../images/image03.jpg");
    background-position: center;
    animation: slide-animation-04 24s infinite;
}

@keyframes slide-animation-01 {
    0% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slide-animation-02 {
    0% { opacity: 0; }
    20% { opacity: 0; }
    25% { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slide-animation-03 {
    0% { opacity: 0; }
    45% { opacity: 0; }
    50% { opacity: 1; }
    70% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slide-animation-04 {
    0% { opacity: 0; }
    25% { opacity: 0; }
    70% { opacity: 0; }
    75% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================
   Page Hero
========================= */
.background {
    height: 90vh;
    width: 100%;
    margin-top: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -100;
    overflow: hidden;
}

.background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
}

.background-text {
    position: absolute;
    left: 8%;
    right: auto;
    top: auto;
    bottom: 8vh;
    margin: 0;
    width: min(92%, 720px);
    padding: 0;
    color: #fff;
    text-align: left;
    z-index: 2;
}

.background-text h2 {
    margin: 0;
    line-height: 1.08;
    color: #fff;
    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.22),
        0 10px 28px rgba(0, 0, 0, 0.16);
}

.index-title {
    width: auto;
    height: auto;
    color: inherit;
}

.hero-sub {
    margin: 0 0 1.2rem;
    font-size: 1.15rem;
    letter-spacing: 0.22em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
}

.hero-line {
    display: block;
}

.hero-line--main {
    font-size: clamp(3.2rem, 5.4vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-line--sub {
    margin-top: 0.5rem;
    font-size: clamp(1.8rem, 2.3vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.92);
}

/* 左に細いアクセント */
.background-text::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 0.6rem;
    width: 1px;
    height: calc(100% - 1.2rem);
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0.72),
        rgba(255,255,255,0)
    );
}
/* =========================
   Layout
========================= */
article {
    background-color: var(--surface-soft);
}

section {
    width: 70%;
    max-width: 1000px;
    margin: 5% auto 0;
    padding: 0 0 5%;
}

.section-top {
    margin-top: 90vh;
    padding-top: 10%;
}

.section-top h3 {
    font-size: 2.2rem;
}

.section-top h4 {
    font-size: 1.8rem;
}

.section-top p {
    line-height: 1.9;
}

.title {
    width: fit-content;
    margin: 0 auto 2rem;
    font-size: 4rem;
    letter-spacing: 0.2rem;
    position: relative;
}

.title::after {
    content: "";
    display: inline-block;
    width: 4rem;
    height: 3px;
    background-color: var(--sub-accent);
    position: absolute;
    left: calc(50% - 20px);
    bottom: -3px;
}

/* =========================
   Common Button
========================= */
.div-button,
.section-top button {
    text-align: right;
    border: var(--accent) solid 1px;
    margin-left: auto;
    margin-right: 0;
    margin-top: 5%;
    width: fit-content;
    transition: 0.3s;
    background: transparent;
}

.a-button,
.section-top button {
    position: relative;
    color: var(--accent);
    font-size: 1.4rem;
    display: inline-block;
    padding: 2rem 8rem 2rem 2rem;
    transition: ease-in;
}

.a-button::before,
.section-top button::before {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 1rem;
    transform: translateY(calc(-50% - 1px)) translateX(-4px) rotate(30deg);
    width: 12px;
    height: 1px;
    background-color: var(--accent);
    transition: ease-in;
}

.a-button::after,
.section-top button::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    width: 50px;
    height: 1px;
    background-color: var(--accent);
    transition: ease-in;
}

.div-button:hover,
.section-top button:hover {
    background-color: var(--accent);
}

.a-button:hover,
.section-top button:hover {
    color: #fff;
}

.a-button:hover::before,
.section-top button:hover::before,
.a-button:hover::after,
.section-top button:hover::after {
    background-color: #fff;
}

article button {
    left: 100%;
    transform: translateX(-100%);
}

/* =========================
   Existing Grids
========================= */
.grid-div1 {
    margin: 10% auto;
    gap: 5%;
    max-width: 500px;
}

.grid-div2 {
    margin-top: 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-div3 {
    margin-top: 10%;
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 3rem;
}

.grid-content {
    margin-bottom: 10%;
    width: 100%;
}

.grid-img img {
    width: 100%;
    height: 30%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
}

.tag {
    font-size: 1.4rem;
    color: var(--sub-accent);
    margin: 2em 0 0.5em;
}

.grid-div-text h3 {
    font-size: 2rem;
    margin: 0;
}

.date {
    font-size: 1.1rem;
    color: var(--text);
}

/* =========================
   Footer
========================= */
footer {
    background-color: var(--accent);
    color: #ffffff;
    padding-bottom: 2rem;
    padding-top: 5rem;
}

footer ul {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}

footer ul li {
    width: fit-content;
    margin: 2rem;
    list-style: none;
}

footer li a {
    color: #fff;
    font-size: 1.4rem;
}

footer p {
    width: fit-content;
    margin: 0 auto;
    font-size: 1.2rem;
    padding-top: 5rem;
}

/* =========================
   Existing Pages
========================= */
.index-aboutp {
    text-align: center;
    margin-top: 5%;
}

.aboutp {
    margin-top: 10%;
    text-align: left;
}

.works-div-tags {
    display: flex;
    gap: 5rem;
    margin: 0 0 10%;
}

.wp-pagenavi,
.works-page {
    display: flex;
    justify-content: center;
    font-size: 1rem;
    width: fit-content;
    gap: 2rem;
    margin: 5% auto 0;
}

.current,
.page-now {
    border: solid 2px var(--accent);
    color: var(--accent);
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page,
.nextpostslink,
.previouspostslink,
.page-other {
    background-color: var(--accent);
    color: #fff;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page a,
.nextpostslink a,
.previouspostslink a,
.wp-pagenavi a:visited {
    color: #fff;
}

.page-now p,
.page-other p {
    width: fit-content;
    display: block;
    padding: 1rem;
}

.works-img {
    margin: 5% 0;
    width: 100%;
}

.interview-h3 {
    font-size: 1.8rem;
}

.interview-p {
    margin-top: 5%;
}

.section-top ul,
.prof-link {
    margin: 5% 0;
}

.section-top ul li a,
.prof-link li a {
    font-size: 1.8rem;
    font-weight: bolder;
}

/* =========================
   New Components for single.php / page.php
   本文内で自由に使える拡張クラス
========================= */

/* 基本カード */
.card,
.profile-card,
.info-card,
.work-card,
.project-card,
.link-card,
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2.4rem;
    margin: 0 0 2.4rem;
}

/* 2カラム / 3カラム */
.content-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
    margin: 3rem 0;
}

.content-grid--3,
.card-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    margin: 3rem 0;
}

/* プロフィールカード */
.profile-card {
    padding: 3rem;
}

.profile-card__name {
    font-size: clamp(3rem, 4vw, 4.6rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.profile-card__lead {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}

/* セクション見出し風 */
.section-label,
.block-title,
.card-title {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 2rem;
    color: var(--text);
}

.section-label::before,
.block-title::before,
.card-title::before {
    content: "";
    display: inline-block;
    width: 4.8rem;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

/* Skills */
.skill-list,
.skills-list,
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.skill-list li,
.skills-list li,
.chip-list li,
.skill-chip,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 3.8rem;
    padding: 0 1.4rem;
    border: 1px solid var(--border);
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

/* SNS / links */
.icon-links,
.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.icon-link,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    min-width: 4.4rem;
    padding: 0 1.6rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    transition: 0.25s ease;
}

.icon-link:hover,
.link-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

/* 作品カード */
.work-card,
.project-card {
    overflow: hidden;
    padding: 0;
}

.work-card__image,
.project-card__image,
.card-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9eef3;
}

.work-card__image img,
.project-card__image img,
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.work-card:hover .work-card__image img,
.project-card:hover .project-card__image img,
.card:hover .card-thumb img {
    transform: scale(1.04);
}

.work-card__body,
.project-card__body,
.card-body {
    padding: 2rem;
}

.work-card__title,
.project-card__title,
.card-body h3 {
    margin: 0 0 0.8rem;
    font-size: 2rem;
    line-height: 1.4;
}

.work-card__text,
.project-card__text,
.card-body p {
    color: var(--text-light);
}

/* 小さめタグ */
.tag-list,
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.tag-list li,
.meta-tags li,
.meta-tag {
    display: inline-flex;
    align-items: center;
    min-height: 3.2rem;
    padding: 0 1.2rem;
    border: 1px solid var(--border);
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* 縦並び project */
.project-list {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.project-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2.4rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--border);
}

.project-item__meta {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.project-item__content h3 {
    margin: 0 0 0.8rem;
    font-size: 2rem;
}

.project-item__content p {
    margin: 0;
    color: var(--text-light);
}

/* CTA */
.contact-box,
.cta-box {
    padding: 2.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    margin-top: 3rem;
}

.button-link,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.6rem;
    padding: 0 2rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 700;
    transition: 0.25s ease;
}

.button-link:hover,
.cta-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* WordPress本文の画像・埋め込みを整える */
.section-top img,
.section-top .wp-block-image img {
    border-radius: 16px;
    max-width: 100%;
    height: auto;
}

.section-top .wp-block-image,
.section-top figure {
    margin: 2.4rem 0;
}

.section-top iframe,
.section-top video {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
}

/* WPブロックにも少し対応 */
.section-top .wp-block-group,
.section-top .wp-block-columns {
    margin: 2.4rem 0;
}

.section-top .wp-block-cover,
.section-top .wp-block-media-text {
    margin: 2.4rem 0;
    border-radius: 18px;
    overflow: hidden;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1000px) {
    #menu-btn-check:checked ~ .menu-content {
        width: 60vw;
        padding: 10%;
        height: 100%;
    }

    .background-text {
        width: min(90%, 620px);
        left: 6%;
        bottom: 7vh;
    }

    .hero-line--main {
        font-size: clamp(2.8rem, 5vw, 4.8rem);
    }

    .hero-line--sub {
        font-size: clamp(1.6rem, 2.2vw, 2.3rem);
    }

    .grid-div3,
    .content-grid--3,
    .card-grid--3 {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid,
    .card-grid,
    .project-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    p,
    ul,
    ol {
        font-size: 1.4rem;
    }

    header h3 a {
        font-size: 1.2rem;
    }

    #menu-btn-check:checked ~ .menu-content {
        width: 100%;
        padding: 10%;
    }

    footer ul {
        flex-direction: column;
    }

    footer ul li {
        margin: 1.5rem;
    }

    .background {
        height: 65vh;
    }

    .background-text {
        left: 16px;
        right: 16px;
        bottom: 5vh;
        width: auto;
    }

    .background-text::before {
        display: none;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.18em;
    }

    .hero-line--main {
        font-size: clamp(2.4rem, 8vw, 3.4rem);
        letter-spacing: 0.03em;
    }

    .hero-line--sub {
        margin-top: 0.4rem;
        font-size: clamp(1.3rem, 4.2vw, 1.8rem);
        letter-spacing: 0.12em;
    }
    section {
        width: min(100% - 32px, 1000px);
        margin: 10% auto 0;
    }

    .section-top {
        margin-top: 65vh;
    }

    .title {
        font-size: 3rem;
    }

    .grid-div-text h3,
    .work-card__title,
    .project-card__title,
    .project-item__content h3 {
        font-size: 1.7rem;
    }

    .grid-div3,
    .grid-div2,
    .content-grid,
    .card-grid,
    .content-grid--3,
    .card-grid--3 {
        grid-template-columns: 1fr;
    }

    .div-button {
        margin-top: 10%;
        margin-bottom: 5%;
    }

    .a-button {
        font-size: 1.2rem;
        padding: 1.5rem 6rem 1.5rem 2rem;
    }

    .a-button::after {
        width: 30px;
    }

    .works-page {
        gap: 1.5rem;
    }

    .page-now,
    .page-other,
    .current,
    .page,
    .nextpostslink,
    .previouspostslink {
        width: 40px;
        height: 40px;
    }

    .profile-card,
    .info-card,
    .work-card__body,
    .project-card__body,
    .contact-box,
    .cta-box {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }
}

/* =========================
   Sharp readability / page extension
   追記整理版
========================= */

/* 本文を少し広く使う */
@media (min-width: 1001px) {
    section {
        width: min(78%, 1120px);
        max-width: 1120px;
    }
}

/* 本文の読みやすさ */
.section-top,
.section-top .entry-content,
.section-top .post-content {
    font-size: 1.75rem;
    line-height: 2;
}

.section-top p,
.section-top li {
    line-height: 2;
    margin-bottom: 1.6em;
    color: var(--text);
}

.section-top ul,
.section-top ol {
    margin: 0 0 2.4em;
    padding-left: 1.6em;
}

.section-top li {
    margin-bottom: 0.8em;
}

/* 見出しは横線だけ残す */
.section-top h2,
.section-top h3,
.section-top h4,
.section-top h5,
.section-top h6 {
    margin-top: 4rem;
    margin-bottom: 1.6rem;
    padding-left: 0;
    border-left: none;
    font-weight: 700;
}

.section-top h2:first-child,
.section-top h3:first-child,
.section-top h4:first-child {
    margin-top: 0;
}

.section-label,
.block-title,
.card-title {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.section-label::before,
.block-title::before,
.card-title::before {
    content: "";
    display: inline-block;
    width: 4.8rem;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-top h2 + p,
.section-top h3 + p,
.section-top h4 + p {
    margin-top: 0.4rem;
}

/* 各トピック間の余白 */
.section-top > * + * {
    margin-top: 1.6rem;
}

.section-top .card,
.section-top .profile-card,
.section-top .info-card,
.section-top .work-card,
.section-top .project-card,
.section-top .link-card,
.section-top .contact-card,
.section-top .wp-block-group,
.section-top .wp-block-columns,
.section-top .wp-block-cover,
.section-top .wp-block-media-text,
.section-top figure,
.section-top table,
.section-top blockquote {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* 本文幅制御 */
.section-top p,
.section-top li,
.section-top blockquote {
    max-width: 100%;
}

/* 全体をシャープ寄りに上書き */
.card,
.profile-card,
.info-card,
.work-card,
.project-card,
.link-card,
.contact-card,
.contact-box,
.cta-box,
.button-link,
.cta-button,
.icon-link,
.link-button,
.section-top blockquote,
.section-top img,
.section-top .wp-block-image img,
.section-top iframe,
.section-top video,
.section-top .wp-block-cover,
.section-top .wp-block-media-text {
    border-radius: 0;
}

.section-top .wp-block-cover,
.section-top .wp-block-media-text {
    overflow: hidden;
}

/* 本文画像はそのまま自然に */
.section-top img,
.section-top .wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* project-item の装飾をシャープに統一 */
.project-item__content {
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.project-item__content a {
    position: relative;
    z-index: 2;
    display: block;
}

.project-item__content::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent 46%,
        rgba(255, 255, 255, 0.9),
        transparent 54%
    );
    transform: rotate(18deg);
    opacity: 0;
    pointer-events: none;
}

.project-item__content:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.08);
    transform: translateY(-2px);
}

.project-item__content:hover::after {
    opacity: 1;
    animation: shine 0.7s ease forwards;
}

@keyframes shine {
    0% {
        transform: translateX(-120%) rotate(18deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateX(120%) rotate(18deg);
        opacity: 0;
    }
}

/* モバイル調整 */
@media (max-width: 600px) {
    .section-top {
        font-size: 1.5rem;
        line-height: 1.9;
    }

    .section-top h2,
    .section-top h3,
    .section-top h4 {
        margin-top: 3rem;
        margin-bottom: 1.2rem;
    }

    .section-top p,
    .section-top li {
        line-height: 1.9;
    }

    .section-top .card,
    .section-top .profile-card,
    .section-top .info-card,
    .section-top .work-card,
    .section-top .project-card,
    .section-top .link-card,
    .section-top .contact-card {
        margin-top: 2.2rem;
        margin-bottom: 2.2rem;
    }
}

/* =========================
   Single hero title readable
========================= */
.work-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.14) 35%,
        rgba(0, 0, 0, 0.06) 60%,
        rgba(0, 0, 0, 0) 85%
    );
    z-index: 1;
    pointer-events: none;
}

.single-hero-text {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, 50%);
    width: min(96%, 1200px);
    max-width: calc(100vw - 32px);
    text-align: center;
    padding: 0 1.6rem;
    z-index: 2;
}

.single-hero-text::before {
    display: none;
}

.single-hero-text h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.34em 0.9em 0.24em;
    box-sizing: border-box;

    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: min(92vw, 1200px);

    color: #fff;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(2px);
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        0 6px 18px rgba(0, 0, 0, 0.28);

    transform: translateY(0.045em);
}

.single-hero-text h2::after {
    display: none;
    content: none;
}

@media (max-width: 900px) {
    .single-hero-text {
        width: min(96%, 900px);
    }

    .single-hero-text h2 {
        white-space: normal;
        font-size: clamp(2.4rem, 6vw, 4.4rem);
        line-height: 1.18;
    }
}

@media (max-width: 600px) {
    .single-hero-text {
        width: calc(100% - 32px);
        padding: 0;
    }

    .single-hero-text h2 {
        font-size: clamp(2.2rem, 7.2vw, 3.4rem);
        line-height: 1.18;
        padding: 0.38em 0.7em;
        min-height: 1.8em;
        white-space: normal;
    }
}

/* =========================
   Sticky title on scroll
========================= */
.single-sticky-title {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 70;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.28s ease;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(4, 57, 92, 0.1);
    box-shadow: 0 8px 24px rgba(4, 57, 92, 0.08);
    padding: 0.8rem 1.6rem;
    max-width: calc(100vw - 220px);
}

.single-sticky-title span {
    display: block;
    max-width: 100%;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-sticky-title.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .single-sticky-title {
        top: 64px;
        left: 16px;
        right: 88px;
        transform: translateY(-8px);
        max-width: none;
        padding: 0.7rem 1rem;
        display: block;
    }

    .single-sticky-title.is-visible {
        transform: translateY(0);
    }

    .single-sticky-title span {
        font-size: 1.4rem;
        text-align: left;
    }
}
/* クリックを邪魔しないようにする */
.single-sticky-title,
.single-sticky-title * ,
.work-top::after,
.single-hero-text,
.single-hero-text::before {
    pointer-events: none;
}

/* 本文側を前面にしておく */
article,
.section-top {
    position: relative;
    z-index: 2;
}