/* ==========================================================
   Variables
   ========================================================== */
:root {
  --navy: #0f2a4a;
  --blue: #1f5fa8;
  --blue-light: #4a8fd8;
  --blue-pale: #eaf2fb;
  --blue-mist: #f5f9fd;
  --white: #ffffff;
  --text: #2b3a4d;
  --text-sub: #6b7a8c;
  --border: #dce6f1;
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.08);
  --shadow-hover: 0 18px 40px rgba(15, 42, 74, 0.14);
  --radius: 14px;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", var(--font-ja);
  --header-h: 72px;
}

/* ==========================================================
   Base
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.sp-only { display: none; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn--primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ==========================================================
   Header
   ========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(15, 42, 74, 0.08);
}
.header__inner {
  height: 100%;
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: color 0.3s;
}
.header__logo span { color: var(--blue-light); }
.header.is-scrolled .header__logo { color: var(--navy); }

.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__list a {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  position: relative;
  transition: color 0.3s;
}
.nav__list a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}
.header.is-scrolled .nav__list a { color: var(--navy); }
.header.is-scrolled .nav__cta { background: var(--blue); border-color: var(--blue); color: var(--white) !important; }

.header__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.header__toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.header__toggle span:nth-child(1) { top: 15px; }
.header__toggle span:nth-child(2) { top: 21px; }
.header__toggle span:nth-child(3) { top: 27px; }
.header.is-scrolled .header__toggle span,
.header.is-open .header__toggle span { background: var(--navy); }
.header.is-open .header__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .header__toggle span:nth-child(2) { opacity: 0; }
.header.is-open .header__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #0b2240 0%, #15407a 55%, #2a6cb8 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__circle--1 {
  width: 620px; height: 620px;
  right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(74, 143, 216, 0.28), transparent 70%);
}
.hero__circle--2 {
  width: 360px; height: 360px;
  right: 18%; bottom: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero__inner {
  position: relative;
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  padding-top: var(--header-h);
}
.hero__label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a9c9ee;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.hero__label::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero__name {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.hero__name-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #a9c9ee;
  margin-top: 10px;
}
.hero__title {
  margin-top: 28px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  opacity: 0.9;
}
.hero__message {
  margin-top: 14px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.8;
}
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 56px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 46px;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================
   Section common
   ========================================================== */
.section { padding: 120px 0; }
.section__head { text-align: center; margin-bottom: 64px; }
.section__label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
}
.section__title {
  margin-top: 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding-bottom: 20px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 40px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.section__head--light .section__label { color: #a9c9ee; }
.section__head--light .section__title { color: var(--white); }
.section__head--light .section__title::after { background: var(--white); }

/* ==========================================================
   About
   ========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.about__photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-pale), #d4e4f6);
  box-shadow: var(--shadow);
}
.about__photo { position: relative; }
.about__photo::after {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}
.about__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: #8fb0d6;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.about__photo-placeholder svg { width: 38%; fill: #b9d0ea; }

.about__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}
.about__name small {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  margin-left: 10px;
}
.about__text { margin-top: 20px; color: var(--text); }
.about__subtitle {
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex; align-items: center; gap: 12px;
}
.about__subtitle::before {
  content: "";
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--blue);
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline li {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 6px 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -24px; top: 15px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
}
.timeline__year {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--blue);
  width: 48px;
}
.timeline p { font-size: 0.95rem; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 999px;
}

/* ==========================================================
   Works
   ========================================================== */
.works { background: var(--blue-mist); }
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.work-card__thumb {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
}
.work-card__thumb::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  right: -40px; top: -60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.5s;
}
.work-card:hover .work-card__thumb::after { transform: scale(1.25); }
.work-card__thumb span {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}
.work-card__thumb--1 { background: linear-gradient(135deg, #0f2a4a, #1f5fa8); }
.work-card__thumb--2 { background: linear-gradient(135deg, #1f5fa8, #4a8fd8); }
.work-card__thumb--3 { background: linear-gradient(135deg, #2b6cb0, #7fb3e6); }
.work-card__thumb--4 { background: linear-gradient(135deg, #16365f, #3d7cc4); }
.work-card__thumb--5 { background: linear-gradient(135deg, #0b2240, #2a6cb8); }
.work-card__thumb--6 { background: linear-gradient(135deg, #3a78c2, #9cc5ee); }

.work-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.work-card__cat {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
}
.work-card__title {
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}
.work-card__text {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.85;
  flex: 1;
}
.work-card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-card__tags li {
  font-size: 0.75rem;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-sub);
}

/* ==========================================================
   Skills
   ========================================================== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.skills__group {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.skills__heading {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 28px;
}
.skill + .skill { margin-top: 24px; }
.skill__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.skill__value { font-family: var(--font-en); color: var(--blue); font-size: 0.9rem; }
.skill__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--blue-pale);
  overflow: hidden;
}
.skill__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================
   Work Style
   ========================================================== */
.workstyle { background: var(--blue-mist); }
.workstyle__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
}
.workstyle-item {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--blue);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.workstyle-item dd { margin: 0; }
.workstyle-item__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-pale);
}
.workstyle-item__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workstyle-item__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
}
.workstyle-item__value {
  margin-top: 8px !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.workstyle-item__note {
  margin-top: 12px !important;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ==========================================================
   Hobby
   ========================================================== */
.hobby { background: var(--white); }
.hobby__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.hobby-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.35s, box-shadow 0.35s;
}
.hobby-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.hobby-card__icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.hobby-card__icon svg {
  width: 34px; height: 34px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hobby-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.hobby-card__text {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.9;
  text-align: left;
}

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  background: linear-gradient(135deg, #0b2240 0%, #15407a 60%, #2a6cb8 100%);
  color: var(--white);
  text-align: center;
}
.contact__lead { opacity: 0.9; }
.contact__links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.contact__mail:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28); }
.contact__mail svg { width: 22px; height: 22px; fill: var(--blue); }

.sns { margin-top: 48px; display: flex; justify-content: center; gap: 18px; }
.sns a {
  display: flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.sns a:hover { background: var(--white); border-color: var(--white); transform: translateY(-3px); }
.sns svg { width: 22px; height: 22px; fill: var(--white); transition: fill 0.25s; }
.sns a:hover svg { fill: var(--blue); }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  background: #081a31;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px 0;
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ==========================================================
   Animation
   ========================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .skill__fill { transition: none; }
  .hero__scroll::after { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .works__grid,
  .hobby__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 22px; }
  .about__grid { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container, .header__inner, .hero__inner { width: calc(100% - 32px); }
  .sp-only { display: inline; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }

  /* nav */
  .header__toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; }
  .header.is-open .header__logo { color: var(--navy); position: relative; z-index: 110; }
  .nav__list { flex-direction: column; gap: 32px; }
  .nav__list a { color: var(--navy); font-size: 1.2rem; }
  .nav__cta { background: var(--blue); border-color: var(--blue); color: var(--white) !important; padding: 10px 36px; }

  /* 1 column */
  .about__grid,
  .works__grid,
  .skills__grid,
  .hobby__grid,
  .workstyle__grid { grid-template-columns: 1fr; }

  .about__photo { max-width: 320px; margin-inline: auto; width: 100%; }
  .about__photo::after { inset: 14px -14px -14px 14px; }
  .skills__group { padding: 28px 22px; }
  .works__grid { gap: 24px; }

  /* 1行目（22文字）が画面幅に収まるようにフォントサイズを調整 */
  .hero__message { font-size: min(1.1rem, calc((100vw - 32px) / 23)); white-space: nowrap; }
  .hero__actions .btn { flex: 1 1 auto; text-align: center; }
  .contact__mail { padding: 16px 26px; font-size: 1rem; max-width: 100%; }
}
