/* =========================================================
   Portfolio — Web Coder & Frontend Engineer
   青基調 / 余白多め / 大人女子っぽい上品な雰囲気
   ========================================================= */

:root {
  --accent: #4d6da3;
  --ink:    #1f2d4d;
  --muted:  #5a6b8c;
  --soft:   #eef3fa;
  --paper:  #fcfdff;
  --line:   rgba(31, 45, 77, .1);
  --sec-pad: 120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #2f4b7a; }

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

.mincho { font-family: "Zen Old Mincho", serif; }
.latin  { font-family: "Cormorant Garamond", serif; }

.container { max-width: 1000px; margin: 0 auto; }

section { scroll-margin-top: 78px; }
.bg-soft { background: var(--soft); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(252, 253, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 45, 77, .07);
}
.site-nav .brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 11.5px;
  letter-spacing: .16em;
}
.nav-links a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 48px 40px;
  background:
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
    url("images/hero-bg.png") center / cover no-repeat;
}
.hero .eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 36px;
}
.hero-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 56px;
  line-height: 1.55;
  letter-spacing: .04em;
}
.rule { width: 56px; height: 1px; background: var(--accent); margin: 46px 0 32px; }
.hero .lead {
  max-width: 560px;
  font-size: 15px;
  line-height: 2.15;
  color: var(--muted);
  font-weight: 300;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .03em;
  background: var(--soft);
  color: #3f5a86;
}
.scroll-hint {
  margin-top: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.scroll-hint .latin { font-style: italic; font-size: 14px; }
.scroll-hint span:last-child { width: 44px; height: 1px; background: rgba(31, 45, 77, .3); }

/* ---------- Section header ---------- */
.sec-label {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-title {
  font-family: "Zen Old Mincho", serif;
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.sec-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-top: 16px;
}

/* ---------- About ---------- */
.about { padding: var(--sec-pad) 48px; }
.about .sec-title { margin-bottom: 52px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  justify-self: center;
  width: 78%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 28px 56px -28px rgba(31, 45, 77, .42);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: 14.5px; line-height: 2.2; color: var(--muted); font-weight: 300; margin-bottom: 24px; }
.about-text p:first-child { color: #3c4a68; }
.about-text p:last-child { margin-bottom: 0; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 56px; }
.info-card {
  background: var(--paper);
  border: 1px solid rgba(31, 45, 77, .09);
  border-radius: 10px;
  padding: 28px 26px;
}
.info-head { font-size: 11px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(31, 45, 77, .07);
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row span:first-child { color: var(--muted); }
.hours-note { margin-top: 14px; font-size: 11.5px; line-height: 1.8; color: var(--muted); font-weight: 300; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-outline {
  font-size: 11.5px;
  padding: 6px 12px;
  border: 1px solid rgba(31, 45, 77, .14);
  border-radius: 999px;
  color: var(--muted);
}

/* ---------- Service ---------- */
.service { padding: var(--sec-pad) 48px; }
.service .sec-sub { margin-bottom: 56px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.service-item { background: var(--paper); padding: 40px 32px; }
.service-item .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 10px;
}
.service-item h3 {
  font-family: "Zen Old Mincho", serif;
  font-size: 19px;
  letter-spacing: .03em;
  margin-bottom: 14px;
}
.service-item p { font-size: 13px; line-height: 1.95; color: var(--muted); font-weight: 300; }

/* ---------- Works ---------- */
.works { padding: var(--sec-pad) 48px; }
.works .sec-sub { margin-bottom: 56px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(31, 45, 77, .09);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 34px -26px rgba(31, 45, 77, .5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(31, 45, 77, .55); }
.work-thumb { aspect-ratio: 16 / 10; background: #dfe8f4; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 22px 22px 24px; }
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
  border: 1px solid rgba(77, 109, 163, .4);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 14px;
}
.badge--lp { color: #b06a3f; border-color: rgba(176, 106, 63, .4); }
.work-body h3 {
  font-family: "Zen Old Mincho", serif;
  font-size: 17px;
  letter-spacing: .02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--soft);
  padding: 4px 9px;
  border-radius: 5px;
}
.works-note { margin-top: 34px; font-size: 11.5px; color: var(--muted); font-weight: 300; }

/* ---------- Flow ---------- */
.flow { padding: var(--sec-pad) 48px; }
.flow .sec-title { margin-bottom: 56px; }
.flow-list { display: flex; flex-direction: column; }
.flow-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid rgba(31, 45, 77, .12);
  align-items: baseline;
}
.flow-row:last-child { border-bottom: 1px solid rgba(31, 45, 77, .12); }
.flow-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.flow-body h3 {
  font-family: "Zen Old Mincho", serif;
  font-size: 20px;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.flow-body p { font-size: 13.5px; line-height: 2; color: var(--muted); font-weight: 300; }

/* ---------- Strengths ---------- */
.strengths { padding: var(--sec-pad) 48px; }
.strengths .sec-sub { margin-bottom: 56px; }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.strength-card {
  background: var(--paper);
  border: 1px solid rgba(31, 45, 77, .09);
  border-radius: 12px;
  padding: 38px 30px;
}
.strength-card .kicker {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 20px;
}
.strength-card h3 {
  font-family: "Zen Old Mincho", serif;
  font-size: 19px;
  letter-spacing: .03em;
  margin-bottom: 14px;
}
.strength-card p { font-size: 13px; line-height: 2; color: var(--muted); font-weight: 300; }

/* ---------- Contact ---------- */
.contact { padding: var(--sec-pad) 48px 130px; }
.contact-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contact .sec-label { display: flex; justify-content: center; }
.contact .sec-title { font-size: 40px; margin-bottom: 28px; }
.contact .lead {
  max-width: 520px;
  margin: 0 auto 44px;
  font-size: 14.5px;
  line-height: 2.15;
  color: var(--muted);
  font-weight: 300;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 19px 43px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .08em;
  transition: background .2s ease;
}
.cta:hover { background: #16233f; color: #fff; }
.cta .latin { font-style: italic; font-size: 16px; }
.contact-note { margin-top: 22px; font-size: 12px; color: var(--muted); font-weight: 300; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(31, 45, 77, .08);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink);
}
.site-footer .meta { font-size: 11px; color: var(--muted); letter-spacing: .1em; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  :root { --sec-pad: 76px; }
}

@media (max-width: 760px) {
  .site-nav { padding: 14px 20px; }
  .nav-links { gap: 10px; font-size: 9.5px; letter-spacing: .08em; }

  .hero { padding: 72px 22px 32px; }
  .hero-title { font-size: 25px; line-height: 1.6; }

  .about, .service, .works, .flow, .strengths { padding-left: 22px; padding-right: 22px; }
  .contact { padding: 60px 22px; }
  .site-nav, .site-footer { padding-left: 12px; padding-right: 12px; }

  .sec-title { font-size: 26px; }
  .contact .sec-title { font-size: 26px; }

  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .info-grid { grid-template-columns: 1fr; }
  .service-grid,
  .works-grid,
  .strength-grid { grid-template-columns: 1fr; }

  .flow-row { grid-template-columns: 52px 1fr; gap: 16px; }
  .flow-num { font-size: 28px; }
}

/* ---------- Hero sub ---------- */
.hero-sub {
  max-width: 620px;
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Work role label ---------- */
.role-label {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 9px;
}

/* ---------- Strengths: available services list ---------- */
.service-list-wrap {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(31, 45, 77, .12);
}
.service-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 40px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 300;
}
.service-list .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (max-width: 760px) {
  .hero-sub { font-size: 16px; }
  .service-list { grid-template-columns: 1fr; }
}
