/*
Theme Name: K.V.D Portfolio
Theme URI: https://tan370580.studio.site
Author: Kaori Matsuda
Author URI: https://tan370580.studio.site
Description: è¦³åã»å°åéå®¢ã«ç¹åããWebãã¶ã¤ãã¼æ¾ç° é¦ã®ãã¼ããã©ãªãªç¨ã«ã¹ã¿ã WordPressãã¼ã
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kvd
*/

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #FF5035;
  --color-primary-hover: #e6402b;
  --color-text-dark: #111111;
  --color-text: #222222;
  --color-text-light: #333333;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-light: #fafafa;
  --color-border: #e0e0e0;
  --font-main: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
.section-title {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.section-title--center {
  text-align: center;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-dark);
}

.site-logo a:hover {
  color: var(--color-primary);
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-dark);
  transition: var(--transition);
}

.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(5px, -5px);
}

/* ============================================
   Hero / Concept Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: normal;
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-primary .arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(5px);
}

/* ============================================
   Profile Section
   ============================================ */
.profile {
  padding: 8rem 2rem;
  background: var(--color-bg-light);
}

.profile-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.profile-image {
  flex: 0 0 280px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text {
  flex: 1;
}

.profile-name {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.profile-description {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================
   Work Section
   ============================================ */
.work {
  padding: 8rem 2rem;
  background: var(--color-bg);
}

.work-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.work-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-light);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.carousel-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 8rem 2rem;
  background: var(--color-bg-light);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form label .required {
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 80, 53, 0.1);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .privacy-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact-form .privacy-check input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.contact-form .privacy-check label {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0;
}

.contact-form .privacy-check a {
  color: var(--color-primary);
  text-decoration: underline;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-text-dark);
  color: var(--color-white);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

/* ============================================
   Profile Detail Page (page-profile.php)
   ============================================ */
.profile-detail {
  padding: 10rem 2rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.profile-detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-detail-name {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.profile-detail-brand {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.profile-detail-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 3rem;
  border: 4px solid var(--color-bg-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-detail-content {
  line-height: 2.2;
  font-size: 0.95rem;
  color: var(--color-text-light);
  border-top: 3px solid var(--color-primary);
  padding-top: 2rem;
}

.profile-detail-content p {
  margin-bottom: 1.5rem;
}

.profile-detail-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   Scroll Animation
   ============================================ */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-loaded .fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.js-loaded .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Work Grid & Browser Cards === */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 2rem;
}
a.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
a.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.work-card-browser { background: #fff; }
.work-card-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }
.work-card-scroll {
    height: 500px;
    overflow: hidden;
    position: relative;
}
.work-card-scroll iframe {
    width: 300%;
    height: 1500px;
    border: none;
    transform: scale(0.3333);
    transform-origin: top left;
    pointer-events: none;
}
.work-card-info { padding: 16px 20px; border-top: 1px solid #eee; }
.work-card-info h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.work-card-info p { font-size: 0.78rem; color: #666; line-height: 1.7; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .work-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .work-card-scroll { height: 400px; }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .profile-inner {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .profile-detail {
    padding: 7rem 1.5rem 4rem;
  }

  .profile-detail-name {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .carousel-track {
    transition: none;
  }
}
