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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #2977c9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  margin: 0;
  padding-bottom: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  color: #000;
  text-align: center;
}

.section {
  padding: 96px 0;
}

/* ---------- Hero ---------- */

.hero {
  background: #4aa3df url("/assets/hero.jpg") center / cover no-repeat;
  background-image: image-set(url("/assets/hero.webp") type("image/webp"), url("/assets/hero.jpg") type("image/jpeg"));
}

.hero .container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.hero h1 {
  margin: 0;
  padding-top: 128px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.hero p {
  margin: 0;
  padding-bottom: 256px;
  font-size: 20px;
  font-weight: 300;
  line-height: 40px;
  color: #fff;
}

/* ---------- About ---------- */

.about {
  text-align: center;
  color: #000;
}

.about-text {
  margin: 0;
  padding-bottom: 20px;
  font-weight: 300;
}

.about-text a,
.profile-title a {
  color: inherit;
}

.profile {
  margin-top: 48px;
}

.avatar {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.profile-title {
  display: block;
  padding-bottom: 16px;
  font-size: 16px;
}

.social {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  color: #000;
}

.social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Experience timeline ---------- */

.timeline {
  position: relative;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #dedede;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 46px 0 32px;
}

.tl-num {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  line-height: 23px;
  color: #60a2f7;
  text-align: center;
}

.tl-text {
  padding: 0 9px 0 24px;
  color: #000;
}

.tl-item:nth-child(even) .tl-text {
  padding: 0 24px 0 9px;
}

.tl-text h3 {
  margin: 0 0 8px;
  text-indent: 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.tl-text p {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 36px;
}

.tl-text a {
  color: inherit;
}

.tl-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 30px;
}

.tl-media img {
  width: 287px;
  max-width: 100%;
}

/* odd: image left / text right, even: text left / image right */
.tl-item:nth-child(odd) .tl-media {
  grid-column: 1;
  grid-row: 1;
}

.tl-item:nth-child(odd) .tl-text {
  grid-column: 2;
  grid-row: 1;
}

.tl-item:nth-child(even) .tl-text {
  grid-column: 1;
  grid-row: 1;
}

.tl-item:nth-child(even) .tl-media {
  grid-column: 2;
  grid-row: 1;
}

/* ---------- Contact ---------- */

.contact .inner {
  max-width: 554px;
  margin: 0 auto;
}

.contact .section-title {
  font-size: 24px;
  line-height: 48px;
  padding-bottom: 8px;
}

.field {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 12px;
}

.field label {
  padding-top: 0;
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.input {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s;
}

.input:hover {
  border-color: #000;
}

.input:focus-within {
  border-color: #2977c9;
  box-shadow: 0 0 0 1px #2977c9;
}

.input svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: 12px;
  color: #757575;
}

.input input,
.input textarea {
  flex: 1;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  color: #0a0a0a;
}

.input svg + input {
  padding-left: 8px;
}

.input textarea {
  height: 120px;
  resize: vertical;
}

.input ::placeholder {
  color: #a0a0a0;
}

.hp {
  position: absolute;
  left: -10000px;
}

.submit {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 24px;
  border: 0;
  border-radius: 4px;
  background: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
}

.submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  text-align: center;
}

.form-status.ok {
  color: #1e8a1b;
}

.form-status.error {
  color: #d32f2f;
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 48px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-logo img {
  display: block;
  width: 96px;
  height: 96px;
}

.footer-nav {
  display: flex;
}

.footer-nav a {
  padding: 8px 16px;
  font-size: 12px;
  line-height: 18px;
  color: #616161;
}

.footer hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom small {
  font-size: 16px;
  font-weight: 300;
  color: #212529;
}

.footer .social a {
  color: #616161;
}

/* ---------- Article (Life is a Business) ---------- */

.article {
  padding: 96px 0;
}

.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article p {
  margin: 0;
}

.article h1 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.article h2 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.article h3 { font-size: 28px; font-weight: 700; line-height: 1.2; }
.article h4 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.article h5 { font-size: 20px; font-weight: 700; line-height: 1.2; }

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .hero .container {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
  }

  .hero h1 {
    padding-top: 250px;
    font-size: 30px;
    line-height: 1.5;
  }

  .hero p {
    padding-bottom: 300px;
    font-size: 16px;
    line-height: 24px;
  }

  .timeline::before {
    left: 10px;
  }

  .tl-num {
    left: 10px;
  }

  .tl-item {
    grid-template-columns: 1fr;
    padding: 40px 0 56px 20px;
    text-align: center;
  }

  .tl-item .tl-text,
  .tl-item:nth-child(n) .tl-text {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .tl-item .tl-media,
  .tl-item:nth-child(n) .tl-media {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
  }

  .tl-media img {
    width: 150px;
    margin-top: 40px;
  }

  .tl-text h3 {
    text-indent: 0;
  }

  .tl-text p {
    font-size: 16px;
    line-height: 32px;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .article h1 { font-size: 32px; }
  .article h2 { font-size: 28px; }
  .article h3 { font-size: 24px; }
  .article h4 { font-size: 20px; }
  .article h5 { font-size: 18px; }
}
