/*
Theme Name: My Light Minimal Portfolio
Author: Your Name
Description: Light themed portfolio for WordPress.
Version: 1.1
*/

:root {
    --bgColor: #f5f5f5;    /* 背景色を白系に */
    --textColor: #0a0a0a;  /* 文字色を黒系に */
    --accentColor: #000000; /* アクセント色を純黒に */
    --grayDark: #e0e0e0;   /* カード背景などを薄いグレーに */
    --grayLight: #cccccc;  /* 境界線などを中間のグレーに */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    background-color: var(--bgColor);
    color: var(--textColor);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Header */
.mainHeader {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 1000;
    background: rgba(245, 245, 245, 0.8); /* 背景に合わせて透過色を変更 */
    backdrop-filter: blur(10px);
}

.logo {
    font-weight: 900;
    letter-spacing: 5px;
    font-size: 1.2rem;
}

.logo img {
    border-radius: 50px;
    width: 40px;
}

.mainNav ul {
    display: flex;
    list-style: none;
}

.mainNav li { margin-left: 30px; }

.mainNav a {
    text-decoration: none;
    color: var(--textColor);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Hamburger Menu */
.hamburgerMenu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 12px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburgerMenu .bar {
    width: 100%;
    height: 1px;
    background-color: var(--accentColor);
    transition: all 0.3s ease;
}

/* Sections */
section {
    padding: 150px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.sectionLabel {
    font-size: 0.7rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: #999; /* ラベルの色を少し調整 */
}

.sectionTitle {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Hero Section */
.heroSection {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.heroTitle {
    font-size: clamp(3.5rem, 18vw, 11rem);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -4px;
}

/* Scroll Message */
.scrollMessage {
    position: absolute;
    bottom: 30px;
    right: 50px;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    color: #999;
    display: flex;
    align-items: center;
    gap: 20px;
}

.scrollArrow {
    width: 1px;
    height: 80px;
    background-color: #ddd; /* 矢印のベース色を薄く */
    position: relative;
    overflow: hidden;
}

.scrollArrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accentColor);
    animation: scrollLine 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Circle Graphs */
.skillContainer {
    display: flex;
    align-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.circleGraph {
    padding: 75px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--accentColor) calc(var(--p) * 1%), var(--grayLight) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    --p: 0;
}

.circleGraph::after {
    content: "";
    width: 138px;
    height: 138px;
    background: var(--bgColor);
    border-radius: 50%;
    position: absolute;
}

.skillValue { position: relative; z-index: 1; font-weight: bold; }

/* Works */
.workGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 40px;
}

.workImage {
    background: var(--grayDark);
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid #ddd; /* 境界線を薄く */
}

.workImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.workCard:hover .workImage { transform: scale(0.98); }

/* Contact Form */
.formGroup { margin-bottom: 40px; }
.formGroup label { display: block; font-size: 0.7rem; letter-spacing: 3px; color: #666; margin-bottom: 10px; }
.formGroup input, .formGroup select, .formGroup textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #ccc; color: var(--textColor); padding: 15px 0; outline: none; transition: 0.4s;
}
.formGroup input:focus, .formGroup textarea:focus { border-bottom: 1px solid #000; }
.submitBtn {
    width: 100%; padding: 25px; background: #000; color: #fff; border: none; font-weight: 900; letter-spacing: 4px; cursor: pointer; transition: 0.4s;
}
.submitBtn:hover { letter-spacing: 6px; background: #333; }

.backHome { display: inline-flex; align-items: center; text-decoration: none; color: #999; font-size: 0.7rem; letter-spacing: 2px; transition: 0.3s; margin-top: 40px;}
.backHome .arrow { margin-right: 15px; transition: 0.4s; }
.backHome:hover .arrow { transform: translateX(-10px); }
.backHome:hover { color: #000; }

/* Fade In */
.fadeIn { opacity: 0; transform: translateY(40px); transition: 1s; }
.fadeIn.isVisible { opacity: 1; transform: translateY(0); }

/* Footer Styles */
.mainFooter {
    padding: 100px 50px 50px; /* 上に余白を持たせてセクションと分離 */
    border-top: 1px solid var(--grayDark); /* 控えめな境界線 */
    background-color: var(--bgColor);
}

.footerContainer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せ */
    gap: 30px;
}

.footerSocial {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footerSocial a {
    color: var(--textColor);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footerSocial a:hover {
    opacity: 0.6;
    transform: translateY(-2px); /* ホバー時に少し浮かす演出 */
}

.copyright {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
}

/* モバイル対応の調整 */
@media (max-width: 768px) {
    .mainFooter {
        padding: 60px 20px 40px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburgerMenu { display: flex; }
    .mainNav {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bgColor); display: flex; justify-content: center; align-items: center;
        transition: 0.5s; z-index: 1500;
    }
    .mainNav.isActive { right: 0; }
    .mainNav ul { flex-direction: column; text-align: center; }
    .mainNav li { margin: 20px 0; }
    .mainNav a { font-size: 1.5rem; }
    .hamburgerMenu.isActive .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .hamburgerMenu.isActive .bar:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }
    .workGrid { grid-template-columns: 1fr; }
    .mainHeader { padding: 20px; }
    section { padding: 100px 20px; }
}