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

html {
    scroll-behavior: smooth;
}

li {
    margin-left: 20px;
}

img {
    display: block;
}
video {
    display: block;
}

.sp-view {
    display: none;
}

.display-flex {
    display: flex;
}

.flex-column {
    display:flex;
    flex-flow: column;
}

.border-radius {
    border-radius: 12px;
}

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

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

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

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

/* 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%; }
}

.back {
    width: 100%;
    height: 500px;
}

.parallax_content{
  position: fixed;
  top: 0;
  height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;
  z-index: -999;
}

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

/* トップへ戻るボタンの基本設定 */
.page-top-btn {
    position: fixed; /* 画面に固定 */
    bottom: 30px;    /* 画面下からの距離 */
    right: 30px;      /* 画面左からの距離 */
    width: 50px;     /* 円の幅 */
    height: 50px;    /* 円の高さ */
    border-radius: 50%; /* 円形にする */
    background-color: #ffffff; /* 円の色を白に */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 影で立体感を出す */
    text-align: center; /* 矢印を中央に配置 */
    line-height: 50px; /* 矢印を垂直中央に配置 */
    z-index: 10; /* 他の要素より手前に表示 */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 矢印（アイコン）のスタイル */
.page-top-btn i {
    color: #000000; /* 矢印の色を黒に */
    font-size: 20px; /* 矢印のサイズ */
    vertical-align: middle;
}

/* ホバーエフェクト */
.page-top-btn:hover {
    transform: translateY(-5px); /* 少し上に移動 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25); /* 影を濃くする */
    opacity: 0.9;
}

/* モバイルでの調整（任意） */
@media (max-width: 768px) {
    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    .page-top-btn i {
        font-size: 16px;
    }
}
/* 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;
    border-bottom: 2px solid #eee;
}

.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 {
    width: 100%;
    /* 画面全体に広がるように高さを設定 */
    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%;
    z-index: -1;
    overflow: hidden;
}

.kimuraFV-container {
    z-index: 0;
    position: absolute;
    bottom: 0;
    left: 0;
}


@keyframes vertical-animation {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

.slider-container {
width: 300px;
  height: auto;
  overflow: hidden;
}

.slider-wrapper {
  display: grid; /* slideのmargin-bottom値を全て内包させる為 */
  animation: vertical-animation 40s linear infinite;
}

.slide {
  width: 300px;
  margin: 0 auto 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
  border-radius: 10px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    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: #2D2D2D;
    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-slider {
    position: absolute;
    top: 0;
    right: 40px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

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

.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.2rem;
    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;
    color: #2D2D2D;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: #2D2D2D;
    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: #ffffff;
    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, #ffffff, #e0e0e0);
}

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

/*new*/
.news {
    background-color: #414141;
    border-bottom: 2px solid #ffffff;
}
/* 5件の記事を横並びにするコンテナ */
.news-horizontal-list {
    display: flex;
    gap: 20px; /* カード間の間隔 */
    overflow-x: auto; /* 5件が画面幅を超えた場合にスクロール可能に */
    padding-bottom: 20px; /* スクロールバーと下の余白を確保 */
    /* スクロールバー非表示（任意） */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* スクロールバー非表示（Chrome, Safari, Opera） */
.news-horizontal-list::-webkit-scrollbar {
    display: none; 
}

/* 個別のニュースカード (ホーム用) */
.news-card-home-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* 縮小させない */
    /* 5列分の幅を計算: (コンテナ幅 - ギャップ合計) / 5 */
    width: calc((100% - 80px) / 5); 
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-home-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 画像ラッパーと画像 */
.news-card-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.news-card-image {
    width: 100%;
    transition: transform 0.3s ease;
}

.news-card-home-item:hover .news-card-image {
    transform: scale(1.05);
}

/* カード内のコンテンツ */
.news-card-content {
    padding: 8px 10px;
    flex-grow: 1; 
}

/* 日付とカテゴリのメタ情報 */
.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    font-size: 12px;
}

.news-category-tag {
    background-color: #2D2D2D;
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 15px;
    font-weight: 400;
    margin-right: 10px;
    font-size: 10px;
}

.news-date {
    color: #777;
}

.news-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    /* 2行までで省略するためのCSS */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Work Section */
.work {
    background: #414141;
    border-bottom: 2px solid #ffffff;
}

.work-client-box {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

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

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #2D2D2D;
    background: #ffffff;
    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: #ffffff;
    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.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

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

.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: #414141;
    border-bottom: 2px solid #ffffff;
    width: 100%;
}

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

.about-content {
    display: flex;
    gap: 0;
    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: 60%;
}

.about-description p {
    margin-bottom: 1.5rem;
}


.skills-section-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 80px 0px 0px 0px;
}
.skills-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

.skill-card {
  background-color: #ffffff;
  position: relative;
  color: #2D2D2D;
  border-radius: 20px;
  width: 365px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.skill-text {
  padding: 10px 20px;
  text-align: center;
}

.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: 20px;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.skill-desc {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  text-align: left;
  letter-spacing: 1px;
}

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

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

.license-section {
    margin-top: 60px;
    padding: 0 0px 0px 0px;
    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: 500;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.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: 14px;
    line-height: 2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.license-cards {
    background-color: #ffffff;
}


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

.profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    width: 230px;
}
.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    display: block;
}

.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: #ffffff;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 32px;
}

.profile-text {
    margin-top: 1rem;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 1px;
    color: rgb(255, 255, 255);
}

/* Contact Section */
.contact {
    background: #2d2d2d;
    color: white;
    border-top: #ffffff 2px solid;
}

.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;
    border-top: 2px solid #ffffff;
}

.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: repeat(2, 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: repeat(2, 1fr);
        gap: 5px;
    }
}

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

.no-scroll {
    overflow: hidden;
}

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

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

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

.project-title {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.project-title2 {
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
}

.project-subtitle {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-decoration: none;
    
}

.project-subtitle a {
    color: #ffffff;
    text-decoration: none;
}

.project-subtitle a:hover {
    text-decoration: underline;
}

.project-subtitle2 {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
}

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

.project-tag {
    background-color: #2D2D2D;
}

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


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

.project-content-container {
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 80px;
}

/* 各セクション（ターゲット、課題など）の共通スタイル */
.project-section-item {
    display: flex; /* 見出しと説明文を横並びに */
    margin-bottom: 0px; /* セクション間の余白 */
    border-bottom: 1px solid #5a5a5a; /* セクション間の区切り線（薄い灰色） */
    padding-bottom: 20px;
}

/* 見出し（ターゲット、課題など）のスタイル */
.project-section-title {
    flex: 0 0 200px; /* 幅を固定 (左側のカラム) */
    font-size: 1.1em;
    font-weight: bold;
}

/* 説明文（コンテンツ）のスタイル */
.project-section-description {
    flex-grow: 1; /* 残りの幅を全て使用 (右側のカラム) */
    padding-left: 20px;
}

.project-section-description p {
    font-size: 14px;
    margin: 0;
}

/* 制作期間セクション内の項目（flexを使用して横並びを解除し、縦に整列させる） */
.project-duration-section .project-section-description {
    display: block; /* duration-itemを縦に並べる */
}

.project-duration-item {
    display: flex; /* 項目名と期間を横並びに */
    justify-content: space-between; /* 両端寄せ */
    margin-bottom: 5px; /* 項目間の余白 */
}

.project-duration-item p {
    /* 項目名と期間のテキストスタイル */
}

.project-duration-time {
    margin-left: 40px;
}

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

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

.overview-item-p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-top: 20px;
}

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

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

.section-heading2 {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 60px;
}

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

.video-pik {
    border-radius: 12px;
    max-height: 500px;
    width: 100%;
    max-width: 400px;
}

/* 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 {
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    background-color: #414141;
}

/* タイトル */
.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: 15px;
    line-height: 1.5;
}

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

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

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

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

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

.note-news-container2 {
    width: 40%;
    text-align: center;
    max-width: 330px;
}

.note-news-container3 {
    background-color: #ffffff;
    color: #2D2D2D;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.note-content {
    display: flex;
    justify-content: space-between;
}

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

.news-card {
    text-decoration: none;
    background-color: #ffffff;
    width: 100%;
}

.news-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #2D2D2D;
    background: transparent;
    background-color: #ffffff;
    color: #2D2D2D;
    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: #ffffff;
    border-color: #2d2d2d;
    transform: translateY(-2px);
}

.work-btn {
    margin-top: 40px;
}

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

.skill-btn:hover,
.skill-btn.active {
    background: #ffffff;
    color: #2D2D2D;
    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: 18px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 2px;
    grid-column: span 1;
    margin-top: 2px;
    margin-bottom: 20px;
}

.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. ホバー時のサイズ変更（オプション：インタラクティブ性向上） */
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: 14px;
    width: 100%;
    border: #1a1a1a solid 1px;
    padding: 20px 40px;
    letter-spacing: 2px;
}
.active-title2 {
    color: #333;
    font-size: 14px;
    width: 100%;
    border: #1a1a1a solid 1px;
    padding: 20px 40px;
    letter-spacing: 2px;
    border-top: none;
}

/* archive.php (ニュース一覧) 用のカスタムスタイル */


/* 記事メタ情報のスタイル調整 (projects.phpの.work-client/work-client-pをベース) */
.news-meta-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.news-date-archive {
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
    margin-right: 15px;
}

.news-category-archive .archive-category-tag {
    font-size: 10px;
    color: #fff;
    background-color: #2D2D2D;
    border-radius: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 3px 8px;
    display: inline-block;
}

.news-title-archive {
    font-size: 18px; /* projects.phpの.work-client-pのサイズをベース */
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 5px;
    margin-bottom: 20px;
}

.news-title-archive a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title-archive a:hover {
    color: #cccccc;
}

/* ページネーションのスタイル (既存のスタイルがない場合を考慮) */
.pagination-work {
    text-align: center;
    margin-top: 4rem;
}

.pagination-work .nav-links {
    display: inline-flex;
    gap: 10px;
}

.pagination-work .page-numbers {
    display: block;
    padding: 0.5rem 1rem;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-work .page-numbers:hover,
.pagination-work .current {
    background-color: #ffffff;
    color: #2D2D2D;
    border-color: #ffffff;
}


.news-placeholder img {
    width: 100%;
    height: 200px;
}

.news-placeholder-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* レスポンシブ対応: スマホ（768px以下）で2列を参考に上書き */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .news-title-archive {
        font-size: 16px;
    }

    .news-placeholder img {
    width: 100%;
    height: auto;
}

.news-placeholder-image {
    position: relative;
    height: auto;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
}

/* さらに小さい画面（480px以下）でも2列を維持を参考に上書き */
@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem; 
    }
}

/* ==================================== */
/* --- Single Article Styles (single.php) --- */
/* ==================================== */

/* セクション全体 (記事一覧ページと同じクラスを使用) */
.project-detail2 { 
    padding: 120px 0 100px 0; /* ヘッダーとの隙間を確保 */
    background-color: #f8f9fa; /* bodyと同じ背景色 */
}


/* 記事ヘッダー */
.article-header-single {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

/* 記事タイトル (h1) */
.article-title-single {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D2D2D; /* 濃いめのグレー */
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .article-title-single {
        font-size: 2rem;
    }
}

/* メタ情報 (日付とカテゴリ) */
.article-meta-single {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.article-date-single {
    margin-right: 15px;
}

/* カテゴリタグ */
.article-category-tag {
    /* news-card-home-itemのタグを流用/調整 */
    background-color: #2D2D2D;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1;
}

/* アイキャッチ画像 */
.article-thumbnail {
    margin-bottom: 3rem;
}
.article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 記事本文のコンテナ */
.article-body {
    line-height: 1.8; /* 行間を広げて可読性アップ */
    color: #333; /* 標準テキストカラー */
    font-size: 1rem;
    margin-bottom: 4rem;
}

/* Pタグのスタイル */
.article-body p {
    margin-bottom: 1.5rem; /* パラグラフ間のスペースを確保 */
}

/* H2タグのスタイル */
.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
    border-bottom: 3px solid #333; /* 記事の区切りとして強調 */
}

/* H3タグのスタイル */
.article-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 10px;
    border-left: 5px solid #6b6b6b; /* アクセントカラーの線 */
}

/* H4タグのスタイル */
.article-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    /* h4には下線や装飾をつけず、h3との階層を視覚的に表現 */
}

/* 記事一覧へ戻るボタン (page.phpのものを流用) */
.back-to-archive {
    text-align: center;
    margin-top: 4rem;
}
/* .news-btn のスタイルは既存のstyle.cssにあるため、ここでは省略 */


/* 投稿タグのスタイル */
.post-tags-single {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.post-tags-single span {
    display: inline-block;
    background-color: #f1f1f1;
    border-radius: 4px;
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 記事ナビゲーション */
.post-navigation-single {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.post-navigation-single p {
    margin: 0;
}
.post-navigation-single a {
    color: #2D2D2D;
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-navigation-single a:hover {
    color: #6b6b6b;
    text-decoration: underline;
}


/* 新しいアニメーション定義: 右から左へ流れ、親要素の幅だけ移動する */
@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 | Web designer, engineer, and video creator"; 
    
    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 100s 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: "V's Create - Creative Team"; 
    
    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: "V's Create - YouTube Channel"; 
    
    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: "KIMURA YUSAKU Coconala"; 
    
    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; 
}

/* 追加デザイン */
.kimuraFV { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    z-index: 0;
    /* zoom-in-loop (アニメーション名) を 20秒かけて実行 */
    /* ease-in-out (緩急をつけて滑らかに) */
    /* infinite (無限にループ) */
    /* alternate (順方向と逆方向を交互に再生 = ズームインとズームアウトを繰り返す) */
}

.project {
    padding: 200px 0 200px 0;
    background-color: #414141;
}



/* 768px以下の画面サイズ */
@media (max-width: 768px) {
    .pc-view {
        display: none;
    }

    .sp-view {
        display: block;
    }

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

    .hero-text {
        margin-top: 0px;
    }
    .hero-subtitle {
        margin-bottom: 0px;
    }

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

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

/* 5件の記事を横並びにするコンテナ */
.news-horizontal-list {
    display: flex;
    gap: 10px; /* カード間の間隔 */
    overflow-x: auto; /* 5件が画面幅を超えた場合にスクロール可能に */
    padding-bottom: 20px; /* スクロールバーと下の余白を確保 */
    /* スクロールバー非表示（任意） */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* スクロールバー非表示（Chrome, Safari, Opera） */
.news-horizontal-list::-webkit-scrollbar {
    display: block; 
}

/* 個別のニュースカード (ホーム用) */
.news-card-home-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* 縮小させない */
    /* 5列分の幅を計算: (コンテナ幅 - ギャップ合計) / 5 */
    width: calc((100% - 80px) / 2); 
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}

/* 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 0px;
    text-align: center;
    max-width: 100%;
    }

    .article-title {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    /* ホバー時の効果 */
    transition: color 0.2s;
    letter-spacing: 1px;
    }

    .section-subtitle {
    font-size: 16px;
    color: #949494;
    font-weight: 300;
    letter-spacing: 2px;
}

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

.work-client {
    font-size: 8px;
    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: 3px;
}
.work-client2 {
    font-size: 8px;
    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: 3px;
}

.work-client-p {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    grid-column: span 1;
    margin-top: 2px;
    margin-bottom: 20px;
}
.profile-card {
    width: 100%;
}

.profile-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin: 0;
    top: 0;
}

.profile-text {
    margin-top: 1rem;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 1px;
    color: rgb(255, 255, 255);
}

.profile-title {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 22px;
}

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

.note-news-container3 {
    width: 100%;
}

.skill-card {
    width: 100%;
}


.project-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.project-title2 {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
}
.project-section-title {
    flex: 0 0 80px; /* 幅を固定 (左側のカラム) */
    font-size: 14px;
    font-weight: bold;
}

/* 説明文（コンテンツ）のスタイル */
.project-section-description {
    flex-grow: 1; /* 残りの幅を全て使用 (右側のカラム) */
    padding-left: 20px;
}

.project-section-description p {
    font-size: 12px;
    margin: 0;
}

}