/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d 0%, #4a4a4a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 30px;
}

.loading-text {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 8px;
    animation: fadeInUp 1s ease;
}

.loading-bar {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #e0e0e0, #ffffff);
    width: 0%;
    animation: loadingProgress 2s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(45, 45, 45, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: #e0e0e0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e0e0e0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e0e0e0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    /* 画面全体に広がるように高さを設定 */
    height: 100vh;
    /* Heroセクションのパディングをリセット */
    padding: 0; 
    /* その他のスタイルは必要に応じて */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-bg {
    /* 背景として機能させるための位置設定 */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2D2D2D;
    z-index: -1;
    overflow: hidden;
}

/* タイル要素を格納するコンテナ */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));    
    width: 100%;
    height: 120%; /* 親要素のhero-bgに合わせる */
}

.grid-item {
    /* デフォルトの背景色を黒に設定 */
    background-color: #fff;
    /* 枠の色を薄い灰色に設定 */
    border: 3px solid rgba(100, 100, 100, 0.5); /* 灰色の枠 */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.grid-item.is-active {
    background-color: #2D2D2D;
    border-color: rgba(100, 100, 100, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, -10px); }
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-flow: column;
    justify-content: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 2.2px;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: heroTitleAnimation 1s ease forwards;
    height: 1.2em; /* 1行の高さにあわせて調整 */
}


.hero-title-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes heroTitleAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: none;
    color: #fff; /* デフォルトのテキスト色を白に設定 */
    z-index: 2;
    overflow: hidden;
}

/* ホバー時に表示される白い円形のエフェクト */
.hero-text::after {
    content: '';
    position: absolute;
    top: var(--mask-y);
    left: var(--mask-x);
    width: 100px; /* マスクのサイズ (直径) */
    height: 100px;
    border-radius: 50%;
    background: #fff; /* マスクの色 (白) */
    transform: translate(-50%, -50%) scale(0); /* 初期状態は非表示 */
    pointer-events: none;
    mix-blend-mode: difference; /* ここが重要！テキストの色を反転させる */
    transition: transform 0.3s ease;
}

/* ホバー時に円を拡大表示 */
.hero-text:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* その他のhero-text内のスタイルはそのまま */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 0;
    left: 0;
    margin: 0 auto;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: white;
    animation: scrollLineAnimation 2s ease-in-out infinite;
}

@keyframes scrollLineAnimation {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4a4a4a, #6b6b6b);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b6b6b;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Work Section */
.work {
    background: #ffffff;
}

.work-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: #6b6b6b;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2d2d2d;
    color: white;
    border-color: #2d2d2d;
    transform: translateY(-2px);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.work-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.work-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    color: #6b6b6b;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 45, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.work-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-category {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.work-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.work-tag2 {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* About Section */
.about {
    background: #f8f9fa;
    width: 100%;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-flow: column;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text {
    display: flex;
    width: 100%;
}


.about-text2 {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.about-text-content {
    width: 50%;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.skills-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  padding: 4rem 0px 0px 0px;
  background-color: #f5f8ff;
}

.skill-card {
  background-color: #404040;
  color: #fff;
  border-radius: 20px;
  padding: 2rem;
  width: 31%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background-color: #585858;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.skill-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.skill-tools {
  font-size: 0.9rem;
  font-style: italic;
  color: #d4d4d4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .skills-section {
    flex-direction: column;
    align-items: center;
  }

  .skill-card {
  width: 100%;
  margin-bottom: 2rem;
}
}

.license-section {
    margin-top: 60px;
    padding: 0 0px 0px 0px;
    background-color: #f5f8ff;
    width: 100%;
}

.license-section2 {
    margin-top: 30px;
    padding: 0 0px 0px 0px;
    background-color: #f5f8ff;
    width: 100%;
}
.license-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.license-title2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.license-list {
    list-style-type: disc;
    margin-left: 2em;
    padding-left: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}


.about-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 50%;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-placeholder {
    width: 260px;
    height: 260px;
    background-image: url(../images/木村優作1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 4px solid #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.profile-icon {
    width: 60px;
    height: 60px;
    color: #6b6b6b;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.profile-title {
    color: #6b6b6b;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Contact Section */
.contact {
    background: #2d2d2d;
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: linear-gradient(90deg, #e0e0e0, #ffffff);
}

.contact .section-subtitle {
    color: #e0e0e0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 40px;
    transition: all 0.3s ease;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #e0e0e0;
    font-weight: 300;
}

.contact-details a {
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e0e0e0;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a4a4a, #6b6b6b);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    transition: all 0.3s ease;
    font-size: 30px;
    text-decoration: none;
}



.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(45, 45, 45, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }


    .about-container {
    flex-flow: column;
    }   
    
    .about-text {
    flex-direction: column-reverse;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text .section-header {
        text-align: center;
    }

    .about-text-content {
    width: 100%;
    }

    .about-image {
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .work-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        padding: 1rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-item {
        margin: 0 10px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

/* project-detail.css */
/* 既存のstyle.cssに追加するか、新しくファイルを作成して読み込んでください */

/* Section: Project Detail */
.project-detail {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.project-title2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.project-subtitle2 {
    font-size: 1rem;
    color: #666;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-hero {
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Overview Section */
.project-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.overview-item {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #333;
}
.overview-item2 {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #333;
    overflow: hidden;
    margin-top: 60px;
}

.overview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.overview-text,
.overview-list {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.overview-list {
    list-style: none;
    padding-left: 0;
}

.overview-list li::before {
    content: '▶';
    color: #333;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Project Content Section */
.project-content {
    margin-bottom: 4rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #333;
    padding-left: 1rem;
}

.section-heading2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Back to Top Button */
.back-to-top {
    text-align: center;
    margin-top: 4rem;
}

.back-to-top .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top .btn:hover {
    background-color: #555;
    transform: translateY(-3px);
}

/* Related Projects Section */
.related-projects {
    text-align: center;
    margin-top: 6rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    width: 100%;
    height: auto;
    display: block;
}

.related-item h3 {
    font-size: 1.2rem;
    padding: 1.5rem;
    color: #333;
}

.related-link {
    text-decoration: none;
}

/* お知らせセクションの基本レイアウト */
.note-news-section {
    padding: 20px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

/* タイトル */
.note-news-section h2 {
    font-size: 1.2em;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* 記事リストの装飾を解除 */
.note-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 個別の記事のスタイル */
.note-article-item {
    display: flex; /* 日付とタイトルを横並びにする */
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 日付のスタイル */
.article-date {
    color: #666;
    font-size: 0.9em;
    flex-shrink: 0; /* 幅を固定 */
    margin-right: 15px;
}

/* タイトルのスタイル */
.article-title {
    color: #333;
    text-decoration: none;
    font-size: 1em;
    /* ホバー時の効果 */
    transition: color 0.2s;
}

.article-title:hover {
    color: #018a9c;
    text-decoration: underline;
}

.note-news-container h2 {
    margin-bottom: 20px;
    font-size: 30px;
}

.note-news-container {
    width: 60%;
}

.note-news-container2 {
    width: 40%;
    padding: 0px 60px;
    text-align: center;
}

.note-news-container3 {
    background-color: #404040;
    color: #fff;
    padding: 20px;
    border-radius: 10px
}

.note-content {
    display: flex;
}

.note-image {
    width: 200px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
}
.note-news-container3-title {
    font-size: 14px;
    margin-bottom: 5px;
    text-align: left;
    font-weight: 500;
}
.note-news-container3-text {
    font-size: 12px;
    text-align: left;
    font-weight: 400;
    color: #dcdbdb;
}

.news-card {
    text-decoration: none;
}

.news-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: transparent;
    background-color: #2D2D2D;
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    margin-top: 15px;
    font-size: 14px;
    text-decoration: none;
}

.news-btn:hover,
.news-btn.active {
    background: #2d2d2d;
    color: white;
    border-color: #2d2d2d;
    transform: translateY(-2px);
}

/* 縦長の画像をサイト内でスクロールさせるための設定 */
.project-image-scroll-container {
    /* スクロールを発生させるための**高さ**を設定します。 */
    /* ここでは画面の高さの約80%としていますが、適宜調整してください。 */
    max-height: 80vh; 
    
    /* 縦方向（Y軸）のスクロールを有効にします。 */
    /* **auto**にすると、内容が溢れたときだけスクロールバーが表示されます。 */
    overflow-y: auto;
    
    /* 横方向のスクロールは不要なので非表示（または hidden）にします。 */
    overflow-x: hidden;
    
    /* 任意: コンテナとページの他の要素との間に余白を追加 */
    margin: 30px auto; 
    
    /* 任意: スクロール領域であることを示すために、ボーダーを追加できます */
    /* border: 1px solid #ccc; */
}

/* 画像自体はコンテナの幅いっぱいに表示されるようにします */
.project-image-scroll-container .project-image {
    /* 親コンテナの幅に合わせて画像を表示します */
    width: 100%;
    /* 縦に長い画像なので、高さを自動調整（元の比率を維持） */
    height: auto;
    /* max-widthやdisplayの設定は、既にあるスタイルで十分な場合もありますが、念のため */
    display: block;
}


.hoge{
text-align:center;
}


/* 新しいPDFビューアのコンテナ */
.pdf-viewer-container {
    max-width: 100%;
    margin-top: 2rem;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* PDFを描画するcanvasのスタイル */
#pdf-canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ページ操作コントロールのコンテナ */
.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
}

/* ボタンの共通スタイル */
.pdf-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pdf-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pdf-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
}

.work-client {
    font-size: 10px;
    color: #fff;
    background-color: #2D2D2D;
    border-radius: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    grid-column: span 1;
    width: 130px;
    text-align: center;
    margin-top: 15px;
    padding: 5px;
}
.work-client2 {
    font-size: 10px;
    color: #fff;
    background-color: #2D2D2D;
    border-radius: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    grid-column: span 1;
    width: 80px;
    text-align: center;
    margin-top: 15px;
    padding: 5px;
}

.work-client-p {
    font-size: 20px;
    color: #2D2D2D;
    font-weight: 500;
    letter-spacing: 2px;
    grid-column: span 1;
    margin-top: 2px;
}

.work-item-placeholder {
    /* グリッドアイテムとしての基本設定 */
    display: flex; /* 子要素（work-item, work-clientなど）を縦に並べる */
    flex-direction: column;
}

/* 1. キーフレームアニメーション */
@keyframes rotate-border {
    to {
        transform: rotate(1turn); 
    }
}

/* 2. コンテナの設定 */
.note-news-container3 {
    position: relative; 
    overflow: hidden; 
    border-radius: 10px; 
    /* 既存のスタイルがあればここに含める */
}

/* 3. 光沢 (::before) の設定 */
.note-news-container3::before {
    padding: ;
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 20%, 
        #fff 35%, /* 光沢の色1 */
        #00bcd4 100%, /* 光沢の色2 */
        transparent 80%,
        transparent 100%
    );
    animation: rotate-border 20s linear infinite; 
    z-index: 0;
}

/* 4. 内側のマスク (::after) の設定 */
.note-news-container3::after {
    content: '';
    position: absolute;
    top: 5px; /* ボーダーの太さ */
    left: 5px; 
    right: 5px; 
    bottom: 5px; 
    background-color: #404040; /* コンテナの背景色と同じ */
    border-radius: 8px; 
    z-index: 1;
}

/* 5. コンテンツを最前面に表示 */
.note-news-container3 > * {
    position: relative;
    z-index: 2;
}

/* 3. ホバー時のサイズ変更（オプション：インタラクティブ性向上） */
a:hover ~ .custom-cursor2, 
button:hover ~ .custom-cursor2,
.submit-btn:hover ~ .custom-cursor2 {
    width: 50px; /* 拡大 */
    height: 50px;
    opacity: 0.8;
}

/* 4. スタック防止用のクラス (JavaScriptで制御) */
.custom-cursor2.no-transition {
    transition: none !important; 
}

.active-title {
    color: #333;
    font-size: 20px;
    width: 100%;
    border: #1a1a1a solid 1px;
    padding: 20px 40px;
    letter-spacing: 2px;
}
.active-title2 {
    color: #333;
    font-size: 20px;
    width: 100%;
    border: #1a1a1a solid 1px;
    padding: 20px 40px;
    letter-spacing: 2px;
    border-top: none;
}


/* 新しいアニメーション定義: 右から左へ流れ、親要素の幅だけ移動する */
@keyframes flowLoop {
    0% {
        transform: translateY(-50%) translateX(0); /* 開始位置: 親要素の右外側 */
    }
    100% {
        /* テキストの長さ分を考慮して左へ移動し、次のループの準備をする */
        transform: translateY(-50%) translateX(-100%);
    }
}

/* 1. ホバー対象のコンテナ設定 */
#active-title {
    position: relative;
    overflow: hidden; /* 流れるアニメーションのために必須 */
    cursor: pointer;
    /* 必要に応じて、ここで文字サイズや色などを定義してください */
    /* 例: font-size: 24px; color: #333; */
}

/* 2. ホバー時に元のテキスト (<p>タグ) を非表示にする */
#active-title:hover > p {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 3. 擬似要素 (流れる新しいテキスト) の設定 */
#active-title::before {
    /* ★ここにホバー時に表示したい新しいテキストを入力してください★ */
    content: "note-Yusaku Kimura | Aiming to become an IT engineer and designer despite having a developmental disorder."; 
    
    position: absolute;
    top: 50%;
    /* テキストが div の左右で途切れないよう、幅を広くとる */
    min-width: 200%; 
    left: 0;
    
    transform: translateY(-50%) translateX(0%); /* 初期位置: 画面右の外側 */
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    opacity: 0; /* 通常時は非表示 */
    pointer-events: none; 
    
    /* 元のテキストのスタイルをここで上書き/流用してください */
    font-size: 6rem; 
    font-weight: 700;
    color: #aeaeae; 
}

/* 4. ホバー時に新しいテキストを表示し、アニメーションを適用する */
#active-title:hover::before {
    opacity: 0.8;
    /* 流れるアニメーションを適用 */
    /* 速度: 5秒 | ループ: 無限 (infinite) | 動き: linear (一定速度) */
    animation: flowLoop 120s linear infinite; 
}

/* 1. ホバー対象のコンテナ設定 */
#active-title2 {
    position: relative;
    overflow: hidden; /* 流れるアニメーションのために必須 */
    cursor: pointer;
    /* 必要に応じて、ここで文字サイズや色などを定義してください */
    /* 例: font-size: 24px; color: #333; */
}

/* 2. ホバー時に元のテキスト (<p>タグ) を非表示にする */
#active-title2:hover > p {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 3. 擬似要素 (流れる新しいテキスト) の設定 */
#active-title2::before {
    /* ★ここにホバー時に表示したい新しいテキストを入力してください★ */
    content: "HTML, CSS, and JavaScript animation code introduction."; 
    
    position: absolute;
    top: 50%;
    /* テキストが div の左右で途切れないよう、幅を広くとる */
    min-width: 200%; 
    left: 0;
    
    transform: translateY(-50%) translateX(0%); /* 初期位置: 画面右の外側 */
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    opacity: 0; /* 通常時は非表示 */
    pointer-events: none; 
    
    /* 元のテキストのスタイルをここで上書き/流用してください */
    font-size: 6rem; 
    font-weight: 700;
    color: #aeaeae; 
}

/* 4. ホバー時に新しいテキストを表示し、アニメーションを適用する */
#active-title2:hover::before {
    opacity: 0.8;
    /* 流れるアニメーションを適用 */
    /* 速度: 5秒 | ループ: 無限 (infinite) | 動き: linear (一定速度) */
    animation: flowLoop 60s linear infinite; 
}

/* 1. ホバー対象のコンテナ設定 */
#active-title3 {
    position: relative;
    overflow: hidden; /* 流れるアニメーションのために必須 */
    cursor: pointer;
    /* 必要に応じて、ここで文字サイズや色などを定義してください */
    /* 例: font-size: 24px; color: #333; */
}

/* 2. ホバー時に元のテキスト (<p>タグ) を非表示にする */
#active-title3:hover > p {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 3. 擬似要素 (流れる新しいテキスト) の設定 */
#active-title3::before {
    /* ★ここにホバー時に表示したい新しいテキストを入力してください★ */
    content: "Motion graphics research site.Motion graphics research site."; 
    
    position: absolute;
    top: 50%;
    /* テキストが div の左右で途切れないよう、幅を広くとる */
    min-width: 200%; 
    left: 0;
    
    transform: translateY(-50%) translateX(0%); /* 初期位置: 画面右の外側 */
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    opacity: 0; /* 通常時は非表示 */
    pointer-events: none; 
    
    /* 元のテキストのスタイルをここで上書き/流用してください */
    font-size: 6rem; 
    font-weight: 700;
    color: #aeaeae; 
}

/* 4. ホバー時に新しいテキストを表示し、アニメーションを適用する */
#active-title3:hover::before {
    opacity: 0.8;
    /* 流れるアニメーションを適用 */
    /* 速度: 5秒 | ループ: 無限 (infinite) | 動き: linear (一定速度) */
    animation: flowLoop 70s linear infinite; 
}

/* 1. ホバー対象のコンテナ設定 */
#active-title4 {
    position: relative;
    overflow: hidden; /* 流れるアニメーションのために必須 */
    cursor: pointer;
    /* 必要に応じて、ここで文字サイズや色などを定義してください */
    /* 例: font-size: 24px; color: #333; */
}

/* 2. ホバー時に元のテキスト (<p>タグ) を非表示にする */
#active-title4:hover > p {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 3. 擬似要素 (流れる新しいテキスト) の設定 */
#active-title4::before {
    /* ★ここにホバー時に表示したい新しいテキストを入力してください★ */
    content: "V's Create - I Tried Singing! Delivery.V's Create - I Tried Singing! Delivery."; 
    
    position: absolute;
    top: 50%;
    /* テキストが div の左右で途切れないよう、幅を広くとる */
    min-width: 200%; 
    left: 0;
    
    transform: translateY(-50%) translateX(0%); /* 初期位置: 画面右の外側 */
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    opacity: 0; /* 通常時は非表示 */
    pointer-events: none; 
    
    /* 元のテキストのスタイルをここで上書き/流用してください */
    font-size: 6rem; 
    font-weight: 700;
    color: #aeaeae; 
}

/* 4. ホバー時に新しいテキストを表示し、アニメーションを適用する */
#active-title4:hover::before {
    opacity: 0.8;
    /* 流れるアニメーションを適用 */
    /* 速度: 5秒 | ループ: 無限 (infinite) | 動き: linear (一定速度) */
    animation: flowLoop 80s linear infinite; 
}

/* 768px以下の画面サイズ */
@media (max-width: 768px) {
    .project-detail {
        padding: 80px 0;
    }

    .project-header {
        margin-bottom: 3rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-hero {
        margin-bottom: 3rem;
    }

    .project-overview {
        grid-template-columns: 1fr; /* 1列に変更 */
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .overview-item {
        padding: 2rem;
    }

    .overview-title {
        font-size: 1.3rem;
    }

    .project-content {
        margin-bottom: 3rem;
    }

    .section-heading {
        font-size: 1.8rem;
        margin-top: 2rem;
    }

    .project-image {
        margin: 1.5rem 0;
    }

    .back-to-top {
        margin-top: 3rem;
    }
    
    .back-to-top .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .related-projects {
        margin-top: 4rem;
    }

    .related-grid {
        grid-template-columns: 1fr; /* 1列に変更 */
    }
    .note-content {
        display: flex;
        flex-flow: column;
    }
    .note-news-container {
    width: 100%;
    }

    .note-news-container2 {
    width: 100%;
    padding: 0px 60px;
    text-align: center;
    margin-top: 60px;
    }
}

/* 480px以下の画面サイズ */
@media (max-width: 480px) {
    .project-detail {
        padding: 60px 0;
    }
    
    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    .project-hero {
        margin-bottom: 2rem;
    }

    .overview-item {
        padding: 1.5rem;
    }

    .overview-title {
        font-size: 1.2rem;
    }

    .overview-text,
    .overview-list {
        font-size: 0.9rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .project-image {
        margin: 1rem 0;
    }

    .back-to-top .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.8rem;
    }

    .note-news-container2 {
    width: 100%;
    padding: 0px 20px;
    text-align: center;
    }
}