@charset "UTF-8";

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #111111;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-fixed {
  overflow: hidden;
}

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

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

/* ===== CSS Variables ===== */
:root {
  --black:       #111111;
  --white:       #ffffff;
  --off-white:   #F7F6F3;
  --gray-100:    #F2F1EE;
  --gray-200:    #E5E4E0;
  --gray-500:    #888886;
  --teal:        #009688;
  --teal-dark:   #00796B;
  --teal-light:  #E0F2F1;
  --sidebar-w:   220px;
}

/* ===== Layout ===== */
.wrapper {
  min-height: 100vh;
}

/* ===== Hamburger Menu (mobile) ===== */
.header {
  background: var(--black);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.header__logo {
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--white);
  font-weight: 300;
  text-transform: uppercase;
}

.header__logo em {
  color: var(--teal);
  font-style: normal;
}

.header__menu-button {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
}

.header__menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__menu-button.is-checked span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.header__menu-button.is-checked span:nth-child(2) {
  opacity: 0;
}

.header__menu-button.is-checked span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.header__contents {
  display: none;
  background: #161616;
  padding: 16px 0 24px;
  border-top: 1px solid #2a2a2a;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.header__nav-list {
  list-style: none;
  padding: 0 16px;
}

.header__nav-item + .header__nav-item {
  margin-top: 2px;
}

.header__nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #aaaaaa;
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  border-radius: 3px;
}

.header__nav-link:hover {
  color: var(--white);
  background: #222222;
}

.header__nav-link--contact {
  background: var(--teal);
  color: var(--white) !important;
  margin-top: 8px;
}

.header__nav-link--contact:hover {
  background: var(--teal-dark) !important;
}

.header__nav-link svg {
  flex-shrink: 0;
  fill: currentColor;
}

.header__nav-link svg path,
.header__nav-link svg circle {
  fill: currentColor;
}

/* ===== Main ===== */
.main {
  padding-top: 60px;
}

/* ===== FV ===== */
.fv {
  position: relative;
  height: calc(100vh - 60px);
  min-height: 420px;
  overflow: hidden;
}

.fv__img {
  display: block;
  width: 100%;
  height: 100%;
}

.fv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fv__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

.fv__contents {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 32px;
}

.fv__label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.fv__heading {
  font-family: "Josefin Sans", sans-serif;
  font-size: 42px;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.05;
  animation: fadeUp 0.8s ease 0.5s both;
}

.fv__heading-sub {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 18px;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.7s both;
}

.fv__scroll {
  margin-top: 48px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.8s ease 0.9s both;
}

.fv__scroll::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Section Common ===== */
.section {
  padding: 72px 0;
}

.section__inner {
  padding: 0 32px;
}

.section__head {
  margin-bottom: 40px;
}

.section__head-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section__head-main {
  font-family: "Josefin Sans", sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--black);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  padding: 8px 0;
  display: inline-block;
}

.section__head-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 10px;
  letter-spacing: 0.06em;
}

.section__lead-text {
  font-size: 15px;
  line-height: 1.85;
  color: #444444;
}

.section__lead-text a {
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  transition: opacity 0.2s;
}

.section__lead-text a:hover {
  opacity: 0.7;
}

/* ===== Service ===== */
.service {
  background: var(--white);
}

.service__list {
  list-style: none;
  margin-top: 48px;
}

.service__item {
  padding: 32px 24px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.service__item + .service__item {
  margin-top: 20px;
}

.service__item:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 150, 136, 0.07);
}

.service__item-img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  height: 56px;
}

.service__item-name {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: var(--black);
}

.service__item-text {
  font-size: 13px;
  line-height: 1.75;
  color: #555555;
  text-align: center;
}

/* ===== Works ===== */
.works {
  background: var(--off-white);
}

.works__list {
  list-style: none;
  margin-top: 48px;
}

.works__item {
  overflow: hidden;
}

.works__item + .works__item {
  margin-top: 40px;
}

.works__item-img {
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
}

.works__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.works__item:hover .works__item-img img {
  transform: scale(1.04);
}

.works__item-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.works__item-link {
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: opacity 0.2s;
  display: inline-block;
}

.works__item-link:hover {
  opacity: 0.65;
}

/* ===== About ===== */
.about {
  background: var(--white);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about__img {
  overflow: hidden;
}

.about__img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about__text {
  font-size: 15px;
  line-height: 1.9;
  color: #444444;
}

.about__text + .about__text {
  margin-top: 14px;
}

.about__skill-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.about__skill-item {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 4px 10px;
}

/* ===== Flow ===== */
.flow {
  background: var(--off-white);
}

.flow__list {
  list-style: none;
  margin-top: 56px;
}

.flow__item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 42px 20px 28px;
  text-align: center;
}

.flow__item + .flow__item {
  margin-top: 40px;
}

.flow__item-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 17px;
  font-weight: 300;
}

.flow__item-img {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.flow__item-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flow__item-text {
  font-size: 13px;
  line-height: 1.75;
  color: #555555;
}

/* ===== Message ===== */
.message {
  background: var(--black);
  color: var(--white);
}

.message .section__head-main {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.message .section__head-sub {
  color: rgba(255, 255, 255, 0.5);
}

.message .section__head-label {
  color: #4DB6AC;
}

.message__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.message__img {
  overflow: hidden;
}

.message__img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(0.75) grayscale(0.2);
}

.message__text {
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
}

/* ===== Contact / Page Bottom ===== */
.page-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.page-bottom__item {
  padding: 56px 32px;
  text-align: center;
}

.page-bottom__item--contact {
  background: #1e1e1e;
}

.page-bottom__item--insta {
  background: var(--teal);
}

.page-bottom__label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.page-bottom__title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 28px;
}

.page-bottom__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  line-height: 1.7;
}

.page-bottom__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
}

.page-bottom__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.page-bottom__btn svg path {
  fill: var(--white);
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1e1e1e;
}

.footer__copy {
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444444;
}

/* ===== Back to Top ===== */
.gotop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  border: none;
  cursor: pointer;
  display: none;
  transition: background 0.2s;
  z-index: 99;
  line-height: 0;
  padding: 0;
}

.gotop:hover {
  background: var(--teal-dark);
}

.gotop img {
  width: 18px;
  filter: brightness(0) invert(1);
  margin: 13px auto;
}

/* ===================================================
   Desktop (768px+) — Sidebar layout
   =================================================== */
@media screen and (min-width: 768px) {
  .wrapper {
    display: flex;
  }

  /* Sidebar */
  .header {
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 44px 0;
    overflow-y: auto;
  }

  .header__container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    height: auto;
    gap: 0;
  }

  .header__logo {
    font-size: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid #2a2a2a;
    width: 100%;
    margin-bottom: 32px;
  }

  .header__menu-button {
    display: none;
  }

  .header__contents {
    display: block !important;
    background: none;
    padding: 0;
    border: none;
    max-height: none;
    overflow: visible;
  }

  .header__nav-list {
    padding: 0 12px;
  }

  /* Main */
  .main {
    flex: 1;
    min-width: 0;
    padding-top: 0;
  }

  /* FV */
  .fv {
    height: 100vh;
  }

  .fv__contents {
    padding: 64px 60px;
  }

  .fv__heading {
    font-size: 72px;
  }

  .fv__heading-sub {
    font-size: 15px;
  }

  /* Section */
  .section__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 56px;
  }

  .section__head-main {
    font-size: 44px;
  }

  /* Service */
  .service__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
  }

  .service__item + .service__item {
    margin-top: 0;
  }

  /* Works */
  .works__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
  }

  .works__item + .works__item {
    margin-top: 0;
  }

  /* About */
  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .about__img img {
    height: 340px;
  }

  /* Flow */
  .flow__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
  }

  .flow__item + .flow__item {
    margin-top: 0;
  }

  /* Message */
  .message__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .message__img img {
    height: 320px;
  }
}

/* ===================================================
   Tablet (768px – 1024px)
   =================================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .header {
    width: 200px;
  }

  .flow__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
  }

  .about__container,
  .message__container {
    gap: 36px;
  }
}
