@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

/* =========================
   Base
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Meiryo', sans-serif;
  line-height: 1.8;
  color: #222;
  background: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-position: outside;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

p,
li,
h1,
h2,
h3,
span,
a,
label,
input,
select,
textarea,
button {
  overflow-wrap: anywhere;
}

/* =========================
   Header
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(90deg, rgba(244, 238, 230, 0.96), rgba(250, 248, 245, 0.96));
  border-bottom: 1px solid rgba(150, 120, 90, 0.18);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 10px;
  gap: 24px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  position: relative;
  padding: 7px 16px 7px 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1.2;
  color: #102033;
  border: 1px solid rgba(0, 119, 204, 0.16);
  border-radius: 10px;
  letter-spacing: 0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.08);
}

.logo::before {
  content: "KL";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0077cc;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.logo-accent {
  color: #0077cc;
}

.logo.icon-about::before {
  background-image: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: #0077cc;
  background: #eef6ff;
  border-color: rgba(0, 119, 204, 0.18);
}

.nav-link {
  position: relative;
  min-height: 38px;
  padding: 7px 12px 7px 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #27313d;
  line-height: 1.2;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
}

.nav-link:not([class*="icon-"]) {
  padding-left: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 119, 204, 0.18);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.08);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: #07111f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-note {
  padding: 0 0 12px;
  font-size: 13px;
  color: #666;
}

/* =========================
   Icons
========================= */

.icon-about::before {
  background-image: url('img/ico_about.svg');
}

.icon-skills::before {
  background-image: url('img/icon_flow.svg');
}

.icon-works::before {
  background-image: url('img/ico_works.svg');
}

.icon-python::before {
  background-image: url('img/ico_service.svg');
}

.icon-github::before {
  background-image: url('img/Copilot_Icon_Black.png');
}

.icon-vision::before {
  background-image: url('img/ico_message.svg');
}

.icon-contact::before {
  background-image: url('img/ico_mail.svg');
}

.icon-mail::before {
  background-image: url('img/ico_mail.svg');
}

.icon-line::before {
  background-image: url('img/LINE_APP_iOS.png');
}

/* =========================
   Hero
========================= */

.hero {
  padding: 100px 0;
  background:
    radial-gradient(circle at top left, rgba(189, 150, 113, 0.14), transparent 34%),
    linear-gradient(135deg, #f3f0eb 0%, #eef3f6 52%, #ffffff 100%);
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1.25;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.hero-label {
  color: #0077cc;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero h2 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.35;
  margin-bottom: 20px;
  color: #102033;
}

.hero p {
  max-width: 720px;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-sub-link {
  margin-top: 16px;
  font-size: 14px;
  color: #5f6872;
}

.hero-sub-link a {
  color: #0077cc;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-label,
.hero h2,
.hero-text > p:not(.hero-label),
.hero-buttons,
.hero-image {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  animation: heroElegantFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-label {
  animation-delay: 0.08s;
}

.hero h2 {
  animation-delay: 0.2s;
}

.hero-text > p:not(.hero-label) {
  animation-delay: 0.34s;
}

.hero-buttons {
  animation-delay: 0.48s;
}

.hero-text > .hero-sub-link {
  animation-delay: 0.56s;
}

.hero-image {
  animation-delay: 0.64s;
}

@keyframes heroElegantFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-label,
  .hero h2,
  .hero-text > p:not(.hero-label),
  .hero-buttons,
  .hero-image {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s;
  text-align: center;
}

.btn.primary {
  background: #0077cc;
  color: #fff;
  border: 2px solid #0077cc;
}

.btn.secondary {
  background: #fff;
  border: 2px solid #0077cc;
  color: #0077cc;
}

.btn:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.btn-icon {
  position: relative;
  padding-left: 46px;
}

.btn-icon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background-size: contain;
  background-repeat: no-repeat;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #7cc7ff;
  outline-offset: 4px;
}

/* =========================
   Sections
========================= */

.section {
  padding: 90px 0;
}

.bg-light {
  background: #f7f9fb;
}

#skills {
  background:
    radial-gradient(circle at 78% 18%, rgba(124, 199, 255, 0.12), transparent 30%),
    radial-gradient(circle at 18% 80%, rgba(189, 150, 113, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f6 52%, #f7f3ee 100%);
}

#works {
  background:
    radial-gradient(circle at 22% 24%, rgba(189, 150, 113, 0.08), transparent 30%),
    radial-gradient(circle at 78% 66%, rgba(124, 199, 255, 0.11), transparent 34%),
    linear-gradient(180deg, #f7f3ee 0%, #fbfaf8 22%, #f8fafc 58%, #eef3f6 100%);
}

#python {
  background:
    radial-gradient(circle at 22% 24%, rgba(124, 199, 255, 0.12), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(189, 150, 113, 0.08), transparent 28%),
    linear-gradient(180deg, #eef3f6 0%, #f8fafc 52%, #edf3f7 100%);
}

#github {
  background:
    radial-gradient(circle at 72% 24%, rgba(0, 119, 204, 0.1), transparent 32%),
    radial-gradient(circle at 18% 78%, rgba(189, 150, 113, 0.08), transparent 28%),
    linear-gradient(180deg, #edf3f7 0%, #ffffff 48%, #edf3f7 84%, #08101e 100%);
}

.bg-dark {
  background: #102033;
}

.section-title {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 32px;
  text-align: center;
  color: #102033;
}

.section-title.white {
  color: #fff;
}

#python .section-title.white {
  color: #102033;
}

/* Aboutタイトル用アイコン */
.section-title.icon-about {
  position: relative;
  padding-left: 28px;
  display: inline-block;
  width: 100%;
}

.section-title.icon-about::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(calc(-100% - 28px), -50%);
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('img/ico_about.svg');
}

/* =========================
   About
========================= */

#about {
  background:
    radial-gradient(circle at 28% 48%, rgba(189, 150, 113, 0.11), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f3ee 52%, #ffffff 100%);
}

.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.about-text p + p {
  margin-top: 16px;
}

/* =========================
   Cards
========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card,
.github-card,
.python-box {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.card img.skill-github-icon {
  object-fit: contain;
  padding: 28px;
  background: #f7f8f8;
  filter: grayscale(1);
  opacity: 0.72;
}

.card img.skill-support-icon {
  object-fit: contain;
  padding: 28px;
  background: #f7f8f8;
  opacity: 0.78;
}

.card img.skill-robot-icon {
  object-fit: contain;
  padding: 28px;
  background: #f7f8f8;
  opacity: 0.78;
}

.card img.skill-factory-icon {
  object-fit: contain;
  padding: 28px;
  background: #f7f8f8;
  opacity: 0.78;
}

.card h3,
.github-card h3,
.python-box h3,
.github-layout h3 {
  margin-bottom: 12px;
  color: #0077cc;
  line-height: 1.5;
}

/* =========================
   Python / GitHub
========================= */

.python-layout,
.github-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.python-image img,
.github-layout img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.github-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 42px;
  border-radius: 20px;
  background: #0d1117;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.github-visual img {
  max-width: 82%;
  border-radius: 0;
  box-shadow: none;
}

.python-text {
  color: #102033;
}

.python-text h3 {
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.python-text ul {
  margin-top: 20px;
  padding-left: 22px;
}

.python-text li + li {
  margin-top: 8px;
}

.github-layout {
  background: transparent;
}

.github-layout p {
  margin-bottom: 24px;
}

/* =========================
   Vision
========================= */

.vision-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(8, 16, 30, 0.64), rgba(8, 16, 30, 0.78)),
    url('img/starry _sky.jpg') center / cover no-repeat;
  color: #fff;
}

.vision-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(8, 16, 30, 0.08), rgba(8, 16, 30, 0.42));
  pointer-events: none;
}

.vision-section .container {
  position: relative;
  z-index: 1;
}

.vision-section .section-title {
  color: #f7fbff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.timeline div {
  background: #fff;
  padding: 18px 24px;
  border-left: 6px solid #0077cc;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.vision-section .timeline div {
  display: grid;
  gap: 6px;
  color: #f4f8fb;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 6px solid #7cc7ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.vision-section .timeline strong {
  font-size: 18px;
  line-height: 1.5;
}

.vision-section .timeline span {
  color: rgba(244, 248, 251, 0.82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

/* =========================
   Contact / Footer
========================= */

.footer {
  text-align: center;
  padding: 64px 24px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 199, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #0b1324 0%, #102033 48%, #07111f 100%);
  color: #fff;
}

.footer .section-title {
  color: #fff;
  margin-bottom: 18px;
}

.contact-title {
  display: grid;
  gap: 4px;
}

.contact-title-en {
  color: #7cc7ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.footer-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-block {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.contact-block p {
  margin-bottom: 0;
}

.contact-lead {
  max-width: 680px;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(100%, 640px);
  padding: 24px;
  background: #fff;
  color: #102033;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  font: inherit;
  color: #102033;
  background: #f8fafc;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #0077cc;
  outline: 3px solid rgba(0, 119, 204, 0.16);
  background: #fff;
}

.contact-form .contact-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.contact-form .btn {
  min-width: 190px;
}

.contact-form button.btn {
  border: 0;
  cursor: pointer;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-actions .btn {
  min-width: 180px;
}

.line-qr-panel {
  display: grid;
  grid-template-columns: 1fr 144px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  background: #f8fafc;
}

.line-qr-text {
  display: grid;
  gap: 4px;
}

.line-qr-text strong {
  color: #102033;
  font-size: 15px;
  line-height: 1.5;
}

.line-qr-text span {
  color: #5f6872;
  font-size: 14px;
  line-height: 1.7;
}

.line-qr-panel img {
  width: 144px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 119, 204, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-links .btn {
  min-width: 180px;
}

/* =========================
   Back To Top
========================= */

.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 120, 90, 0.22);
  border-radius: 50%;
  color: #102033;
  background:
    linear-gradient(135deg, rgba(250, 248, 245, 0.92), rgba(238, 243, 246, 0.92));
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.back-to-top span {
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: rgba(0, 119, 204, 0.32);
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.18);
}

.back-to-top:focus-visible {
  outline: 3px solid #7cc7ff;
  outline-offset: 4px;
}

/* =========================
   Scroll Animation
========================= */

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

[data-scroll-animate] {
  opacity: 0;
  transform: translateY(20px);
}

/* 画像はスクロール前でも表示する（カードが白紙に見える問題を回避） */
[data-scroll-animate="image"] {
  opacity: 1;
  transform: none;
}

[data-scroll-animate="image"].scroll-animate-active {
  animation: fadeInUp 0.4s ease forwards;
}

[data-scroll-animate="title"].scroll-animate-active {
  animation: fadeInUp 0.25s ease forwards;
}

[data-scroll-animate="text"].scroll-animate-active {
  animation: fadeInUp 0.5s ease forwards 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-animate] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .header-inner {
    align-items: center;
  }

  .nav {
    justify-content: center;
  }

  .header-note {
    text-align: center;
  }

  .hero-flex,
  .about-flex,
  .python-layout,
  .github-layout {
    grid-template-columns: 1fr;
  }

  .hero-flex {
    flex-direction: column;
  }

  .hero-text {
    text-align: center;
  }

  .hero p {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    position: sticky;
  }

  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-grid;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(0, 119, 204, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(16, 32, 51, 0.12);
  }

  .nav.is-open {
    display: grid;
  }

  .nav-link,
  .nav-link:not([class*="icon-"]) {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 9px 14px;
    border: 1px solid rgba(0, 119, 204, 0.1);
    border-radius: 10px;
    background: #fff;
  }

  .nav-link::before {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form .contact-actions {
    justify-content: center;
  }

  .section-title {
    font-size: 28px;
  }

  .card,
  .github-card,
  .python-box {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, 1100px);
  }

  .header-inner {
    padding: 12px 0;
  }

  .logo {
    font-size: 24px;
    padding: 6px 12px 6px 46px;
  }

  .logo::before {
    left: 9px;
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .nav {
    font-size: 13px;
    padding: 14px;
  }

  .hero {
    padding: 56px 0;
  }

  .hero h2 {
    font-size: clamp(25px, 8vw, 29px);
    line-height: 1.45;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons,
  .contact-form .contact-actions {
    width: 100%;
  }

  .btn,
  .contact-form .btn,
  .contact-actions .btn {
    max-width: none;
    min-width: 0;
  }

  .card,
  .github-card,
  .python-box {
    padding: 20px;
  }

  .github-visual {
    min-height: 200px;
    padding: 28px;
  }

  .hero-image img,
  .about-image img,
  .python-image img,
  .github-layout img {
    border-radius: 18px;
  }

  .card img {
    height: 160px;
  }

  .contact-actions,
  .footer-links {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .line-qr-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* =========================
   Profile Box
========================= */

.profile-title {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
  color: #1f2937;
}

.profile-box {
  margin-top: 12px;
  padding: 22px 24px;
  background: #f8fafc;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.profile-box p {
  margin: 0;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid #e5e7eb;
}

.profile-box p:last-child {
  border-bottom: none;
}

.profile-box strong {
  display: inline-block;
  min-width: 120px;
  color: #1f2937;
  font-weight: 700;
}

@media (max-width: 768px) {
  .profile-box {
    padding: 18px 20px;
  }

  .profile-box strong {
    display: block;
    min-width: auto;
    margin-bottom: 2px;
  }
}

/* =========================
   About Profile Box
========================= */

.about-last-text {
  margin-bottom: 28px;
}

.profile-box {
  margin-top: 28px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(189, 150, 113, 0.22);
  border-left: 0;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(80, 60, 40, 0.08);
  backdrop-filter: blur(10px);
}

.profile-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(189, 150, 113, 0.16);
  align-items: start;
}

.profile-row:first-child {
  padding-top: 0;
}

.profile-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile-label {
  font-weight: 700;
  color: #6f6256;
  white-space: nowrap;
}

.profile-value {
  color: #1f2937;
  line-height: 1.7;
}

/* Skillだけタグ風にする */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(189, 150, 113, 0.24);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .profile-box {
    padding: 22px 20px;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .profile-label {
    font-size: 15px;
  }

  .profile-value {
    font-size: 15px;
  }
}
