@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --color-primary: #3B6B8A;
  --color-bg: #F7F8FA;
  --color-text: #333333;
  --color-gray: #666666;
  --color-light-gray: #555555;
  --color-white: #FFFFFF;
  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --header-height: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  padding-top: var(--header-height);
  overflow-x: hidden;
  word-break: break-word;
}

/* Typography */
h1, h2, h3, .font-en { font-family: var(--font-en); }
.text-center { text-align: center; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  background: var(--color-primary); color: var(--color-white);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px; z-index: 100;
}
.header-logo a {
  color: var(--color-white); font-size: 20px; letter-spacing: 0.5px; text-decoration: none; font-weight: 400; font-family: var(--font-en);
}
.header-nav ul { display: flex; gap: 24px; }
.header-nav a { color: var(--color-white); text-decoration: none; font-size: 14px; font-family: var(--font-en); transition: opacity 0.3s; }
.header-nav a:hover { opacity: 0.7; }

/* Hamburger */
.hamburger { display: none; background: transparent; border: none; color: var(--color-white); font-size: 32px; cursor: pointer; padding: 0; line-height: 1; }

/* Sections */
.section-padding { padding: 80px 170px; }
.section-bg { background-color: var(--color-bg); }
.section-title { font-size: 34px; letter-spacing: 1px; color: var(--color-primary); text-align: center; margin-bottom: 60px; font-weight: 400; }

/* Main Visual */
.mv {
  height: 500px; background-color: var(--color-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 0 20px;
}
.mv-name { font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--color-text); letter-spacing: 2px; }
.mv-subtitle { font-size: 18px; color: var(--color-primary); letter-spacing: 4px; }
.mv-catch { font-size: 15px; color: var(--color-gray); margin-top: 10px; white-space: pre-wrap; line-height: 1.8; }

/* Works List (Top Page) */
.works-list { display: flex; flex-direction: column; gap: 80px; max-width: 1100px; margin: 0 auto; }
.work-item { display: flex; gap: 40px; align-items: center; }
.work-item:nth-child(even) { flex-direction: row-reverse; }
.work-item-thumb { width: 480px; flex-shrink: 0; border-radius: 4px; border: 1px solid #E6E6E6; overflow: hidden; display: block; text-decoration: none; }
.work-item-thumb img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.work-item-thumb:hover img { transform: scale(1.05); }
.work-item-info { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.work-item-title { font-size: 24px; font-weight: 700; color: var(--color-text); }
.work-item-meta { font-size: 14px; color: var(--color-gray); }
.work-item-role { font-size: 14px; color: var(--color-primary); }
.work-item-desc { font-size: 14px; color: #444444; line-height: 1.6; }
.work-item-btn { display: inline-block; padding: 12px 24px; background: var(--color-primary); color: var(--color-white); text-decoration: none; border-radius: 4px; font-size: 14px; transition: opacity 0.3s; width: fit-content; }
.work-item-btn:hover { opacity: 0.8; }

/* Skill Grid */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 60px; max-width: 1100px; margin: 0 auto; }
.skill-item { display: flex; flex-direction: column; gap: 4px; }
.skill-name { font-size: 16px; font-weight: 600; color: var(--color-primary); font-family: var(--font-en); }
.skill-text { font-size: 13px; color: var(--color-light-gray); line-height: 1.6; }

/* About Content */
.about-content { display: flex; gap: 60px; align-items: center; max-width: 900px; margin: 0 auto; }
.about-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 2px solid #CCCCCC; flex-shrink: 0; }
.about-text { font-size: 14px; color: var(--color-text); line-height: 1.8; }

/* Generic Text Blocks */
.info-text { max-width: 600px; margin: 0 auto; text-align: center; color: var(--color-text); font-size: 14px; }

/* Details Page */
.detail-main { padding: 80px 170px; max-width: 1440px; margin: 0 auto; }
.detail-hero { width: 100%; max-width: 1100px; margin: 0 auto 60px; border-radius: 8px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.overview-box { background: var(--color-bg); border-radius: 8px; padding: 40px; margin: 0 auto 80px; max-width: 800px; }
.overview-list { display: grid; gap: 24px; }
.overview-row { display: grid; grid-template-columns: 120px 1fr; gap: 40px; align-items: baseline; }
.overview-dt { font-weight: bold; color: var(--color-primary); font-size: 14px; }
.overview-dd { color: var(--color-text); font-size: 14px; }
.overview-dd a { color: var(--color-primary); text-decoration: underline; transition: opacity 0.3s; }
.overview-dd a:hover { opacity: 0.7; }

.detail-section-wrap { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 80px; padding-bottom: 80px; }
.detail-section { display: flex; flex-direction: column; gap: 24px; }
.detail-heading { font-size: 24px; color: var(--color-primary); font-weight: bold; font-family: var(--font-en); }
.detail-text { font-size: 16px; color: var(--color-text); line-height: 1.8; }

/* Color Palette */
.color-palette { display: flex; gap: 40px; flex-wrap: wrap; }
.color-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.color-circle { width: 60px; height: 60px; border-radius: 50%; border: 1px solid #DDDDDD; }
.color-code { font-size: 12px; color: var(--color-gray); font-family: var(--font-ja); }

.design-focus-grid { display: grid; gap: 40px; }
.design-focus-item { display: flex; flex-direction: column; gap: 16px; }
.design-item-heading { font-size: 18px; color: var(--color-text); font-weight: bold; }
.design-item-text { font-size: 16px; color: var(--color-gray); line-height: 1.8; white-space: pre-wrap; }

.detail-nav { display: flex; justify-content: space-between; margin: 0 auto; max-width: 800px; padding-top: 40px; border-top: 1px solid #E5E7EB; }
.btn { display: inline-block; padding: 12px 32px; background: var(--color-primary); color: var(--color-white); text-decoration: none; border-radius: 4px; transition: opacity 0.3s; font-family: var(--font-ja); text-align: center; font-size: 14px; }
.btn:hover { opacity: 0.8; }
.btn-outline { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

/* Footer */
.footer { background: var(--color-primary); padding: 20px; text-align: center; color: var(--color-white); font-size: 10px; font-family: var(--font-en); }

/* Animations */
.js-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js-fade-up.is-visible { opacity: 1; transform: translateY(0); }
.js-fade-in { opacity: 0; transition: opacity 1s ease; }
.js-fade-in.is-visible { opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
  .section-padding { padding: 80px 40px; }
  .detail-main { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .hamburger { display: block; }
  .header-nav { 
    position: fixed; top: var(--header-height); left: 100%; width: 100%; height: calc(100vh - var(--header-height));
    background: var(--color-primary); transition: left 0.3s ease; padding: 40px;
  }
  .header-nav.is-open { left: 0; }
  .header-nav ul { flex-direction: column; align-items: center; gap: 32px; }
  .header-nav a { font-size: 20px; }
  
  .mv { height: 400px; }
  .section-padding { padding: 60px 20px; }
  
  .works-list { gap: 60px; }
  .work-item, .work-item:nth-child(even) { flex-direction: column; gap: 24px; }
  .work-item-thumb { width: 100%; }
  
  .skill-grid { grid-template-columns: 1fr; gap: 24px; }
  
  .about-content { flex-direction: column; gap: 40px; text-align: center; }
  
  .detail-main { padding: 60px 20px; }
  .overview-box { padding: 20px; margin-bottom: 40px; }
  .overview-row { grid-template-columns: 1fr; gap: 8px; }
  
  .color-palette { gap: 24px; justify-content: flex-start; }
  
  .detail-nav { flex-direction: column; gap: 16px; align-items: center; padding-top: 40px; }
  .btn { width: 100%; }
}