@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-color: rgba(0, 0, 0, 0.2);
}

.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;
    object-fit: contain;
    z-index: -100;
}

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

.work-top img {
    opacity: 0.35;
    filter: blur(4px);
}

.background-text {
    width: fit-content;
    font-size: 3rem;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    margin: auto;
    color: #fafafa;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.index-title {
    width: fit-content;
    height: fit-content;
    color: #fafafa;
}

/* =========================
   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: 14px;
}

.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 {
        font-size: 2rem;
    }

    .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 {
        font-size: 1.5rem;
    }

    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;
    }
}

/* =========================
   Clean Readability + 横線見出し（完全版）
========================= */

/* ===== 本文の読みやすさ ===== */
.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 {
    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 blockquote {
    padding: 1.8rem 2rem;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    margin: 3rem 0;
}

/* ===== 本文幅制御（読みやすさ） ===== */
.section-top p,
.section-top li,
.section-top blockquote {
    max-width: 100%;
}
/* ===== 念のため縦線を完全無効化 ===== */
.section-top h3,
.section-top h4,
.section-top h5 {
    border-left: none !important;
    padding-left: 0 !important;
}

/* ===== モバイル調整 ===== */
@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;
    }
}