/* ============================================
基本設定
============================================ */

:root {
  --color-main: #3e6afa;    
  --color-text: #333333;    
  --color-bg: #ebebeb;      
  --color-sub-text: #e6e6e6;
}

html{
  scroll-behavior: smooth; 
}

body {
  position: relative; 
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px; 
  line-height: 1.7; 
  letter-spacing: 0.05em; 
}

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

a {
  transition: opacity 0.3s; 
}

.inner {
  width: 90%;
  max-width: 1200px; 
  margin: 0 auto;
}

.section-title {
  font-family: "Quicksand", sans-serif;
  font-size: 32px; 
  font-weight: 700;
  color: var(--color-main);
  line-height: 1;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--color-main);
  position: absolute;
  left: 0;
  bottom: 0;
}

.section-title.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

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

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

/* ============================================
ヘッダー
============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  transition: opacity 0.4s; 
}

.header.is-hidden {
  opacity: 0;
  pointer-events: none; 
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 40px; 
}

.nav a {
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.nav a:hover {
  opacity: 0.6; 
}

.menu-toggle {
  display: none;
}

/* ============================================
メインビジュアル
============================================ */

 .hero {
  position: relative;
  height: calc(100vh + 700px);  
  height: calc(100svh + 700px);
  z-index: 1; 
  margin-bottom: min(0px, calc(50px - (100vh - var(--hero-img-h)) / 2));
  margin-bottom: min(0px, calc(50px - (100svh - var(--hero-img-h)) / 2));
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;  
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  padding: 0;
  background-color: var(--color-bg); 
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: min(1300px, 90vw, calc((100svh - 220px) * 4 / 3)) auto;
}

.hero-bg-before {
  background-image: url("../images/main-visual_before.png");
}

.hero-bg-after {
  --hero-after-offset: 0px; 
  background-image: url("../images/main-visual.png");
  background-position: center calc(50% - var(--hero-after-offset));
  opacity: 0; 
} 

.inner {
  position: relative;
}

.hero-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px; 
  padding: 0 40px;
  z-index: 5;   
  text-align: center; 
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5; 
  display: flex;
  align-items: flex-end; 
  padding-top:20px; 
}

.hero-box p {
  font-size: 40px;
  color: var(--color-text);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
}

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

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px; 
  border: 1px solid var(--color-main); 
  border-radius: 4px; 
  color: var(--color-main); 
  font-family: "Belanosima", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px; 
  transition: background-color 0.3s, color 0.3s; 
}

.button:hover {
  background-color: var(--color-main); 
  color: #fff;
}

/* ============================================
当サイトについて(ABOUT)
============================================ */

.about {
  padding: 120px 0; 
}

.about-row {
  display: flex;
  align-items: center;
}

.about-row.reverse {
  flex-direction: row-reverse;
}

.about-row + .about-row {
  margin-top: 80px; 
}

.about-message {
  width: 50%;
  font-size: clamp(24px, 5vw, 44px);
  padding: 0 100px;
  font-weight: bold;
  border-left: 3px solid #3e6afa;
  font-family: Lora;
  font-weight: 400;
}

.about-text {
  width: 50%;
  padding: 0 50px;
}

.about-lead {
  font-weight: 700;
  font-size: 24px; 
  color: var(--color-text);
  margin-bottom: 24px;
}

/* ============================================
スキル
============================================ */

.skills {
  padding: 120px 0;
  background-color: #fff;
}

.skills-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px; 
  margin-top: 40px;
}

.skills-item {
  width: 310px;
  background-color: var(--color-bg);
  border-radius: 8px; 
  padding: 30px 15px;
  text-align: center;
}

.skills-icon {
  width: 100px;
  margin: 0 auto 24px;
}

.skills-icon img {
  width: 100px;
  height: 100px;
}

.skills-item h3 {
  font-weight: 700;
  font-size: 16px; 
  color: var(--color-main);
  margin-bottom: 24px;
  font-family: "Quicksand", sans-serif;
}

.skills-tool {
  font-size: 14px;
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
}

/* ============================================
制作実績
============================================ */

.works {
  padding: 120px 0;
  background-color: #fff;
}

.works-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 20px; 
  margin-top: 40px;
}

.works-item {
  width: 380px;
}

.works-image {
  overflow: hidden;
  border-radius: 4px;
}

.works-item a .works-image img {
  width: 100%;
  transition: 0.4s;
}

.works-item a:hover .works-image img {
  transform: scale(1.1);
}

.works-blank {
  width: 100%;
  padding-top: 73.4%;
  background-color: #c4c4c4;
  border-radius: 4px;
}

.works-item h3 {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-main);
  margin-top: 24px;
}

.works-item p {
  font-size: 16px;
  margin-top: 8px;
}

/* ============================================
自己紹介
============================================ */

.profile {
  background-color: #3e6afa;
  padding: 60px 0;
  width: 100%;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.profile-text {
  width: 50%;
}

.profile-lead {
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-bottom: 24px;
}

.profile-text p {
  color: var(--color-sub-text);
}

.profile-image {
  width: 30%;
  height: auto;
  border-radius: 8px; 
}

.profile-name-roma {
  font-size: 12px;
}

.profile-name {
  font-size: 24px;
  margin-bottom: 16px;
}

/* ============================================
まとめ
============================================ */

.conclusion {
  padding: 120px 0;
  background-color: #fff;
  text-align: center;
}

.conclusion p {
  max-width: 800px;
  margin: 0 auto;
}
.conclusion p:not(:first-of-type) {
  margin-top: 16px;
}

/* ============================================
フッター
============================================ */

.footer {
  background-color: var(--color-main);
  padding: 20px 10px;
  text-align: center;
}

.footer p {
  font-family: "Belanosima", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ページトップへ戻るボタン(右下に固定表示) */
.top-link {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px; /* ボタンの大きさ */
  z-index: 20;
}

/* SVGの縦横比を50px角に固定する(高さautoだと歪んでしまうため) */
.top-link img {
  width: 50px;
  height: 50px;
}

.top-link:hover {
  opacity: 0.8;
}

/* ============================================
下層ページ
============================================ */

/* 下層ページのヘッダーは背景の上に重ねず、通常の位置に表示 */
.lower-header {
  position: relative;
  background-color: #fff;
}

.lower-title {
  padding: 80px 0;
  background-color: var(--color-main);
  color: #fff;
  text-align: center;
}

.lower-title p {
  font-family: "Belanosima", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.lower-title h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
}

.work-detail {
  padding: 120px 0;
}

/* widthのみを指定し、画像本来の縦横比で表示 */
.work-main-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.work-main-image img,
.work-point-image img {
  width: 100%;
  border-radius: 8px;
}

.work-introduction {
  max-width: 1000px;
  margin: 80px auto 0;
}

.work-heading,
.work-description {
  width: 100%;
}

.work-heading {
  margin-bottom: 30px;
}

.work-lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
}

.work-description p + p {
  margin-top: 20px;
}

.work-information {
  max-width: 1000px;
  margin: 100px auto 0;
  padding: 50px;
  background-color: #fff;
  border-radius: 8px;
}

.work-information dl {
  margin-top: 10px;
}

.work-information dl div {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid #dddddd;
}

.work-information dt {
  width: 30%;
  font-weight: 700;
  color: var(--color-main);
}

.work-information dd {
  width: 70%;
}

.work-point {
  /* display: flex; */
  align-items: center;
  margin-top: 100px;
}

.work-point-image {
  width: 100%;
  margin: auto;
}

.work-point-video {
  width: 100%;
  max-width: 400px;   
  margin: 0 auto;
}

.work-point-video video {
  width: 100%;
  display: block;
  border-radius: 8px;
}


.work-point-text .work-lead {
  margin-bottom: 20px;
}

.back-button {
  margin-top: 100px;
}

.back-button a{
  margin: 0 auto;
}

/* ============================================
レスポンシブ(768px以下)
============================================ */

@media screen and (max-width: 768px) {

  /* ヘッダー・ナビゲーション */
  .header-inner {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    position: relative;
  }

  .logo {
    font-size: 20px;
  }

  .logo img {
    height: 32px; 
    width: auto;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 20;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
  }

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

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

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

  .nav {
    position: fixed;
    top: 60px; 
    left: 0;
    width: 100%;
    max-height: 0; 
    overflow: hidden;
    background-color: #fff;
    transition: max-height 0.4s ease;
  }

  .nav.is-open {
    max-height: 400px; 
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .nav ul li {
    text-align: center;
  }

  .nav a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
  }

  /* メインビジュアル */
  .hero-sticky {
    padding: 0; 
  }

  .hero-box {
    padding: 24px 20px;
  }

  .hero-box h1 {
    font-size: 26px; 
    margin-bottom: 20px;
  }

  .hero-box p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .button {
    width: 140px; 
    font-size: 14px;
  }

  /* 私たちについて */
  .about {
    padding: 50px 0; 
  }

  .about-row,
  .about-row.reverse {
    flex-direction: column; 
    align-items: center;
    gap: 24px;
  }

  .about-row + .about-row {
    margin-top: 50px;
  }

  .about-message {
    font-size: clamp(16px, 6vw, 26px); 
    padding: 30px 0 0;      
    text-align: center; 
    border-left: none;  
    border-top: 3px solid #3e6afa; 
    display: inline-block; 
  }

  .about-message,
  .about-text {
    width: 100%; 
  }

  .about-lead {
    font-size: 20px;
    text-align: center; 
  }

  .about-text .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* スキル */
  .skills {
    padding: 50px 0;
  }

  .skills-list {
    gap: 20px;
  }

  .skills-item {
    width: 100%;
  }

  /* 制作実績 */
  .works {
    padding: 50px 0;
  }

  .works-item {
    width: 100%;
  }

  /* 自己紹介 */
  .profile {
    padding: 50px 0;
  }

  .profile-row {
    flex-direction: column; 
    gap: 32px;
  }

  .profile-text,
  .profile-image {
    width: 100%; 
  }

  .profile-image {
    max-width: 260px;  
    margin: 0 auto;
  }

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

  .profile-text .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .profile-lead {
    font-size: 18px;
  }

  /* まとめ */
  .conclusion {
    padding: 50px 0;
  }

  /* 下層ページ */
  .lower-title {
    padding: 50px 0;
  }

  .lower-title h1 {
    font-size: 26px;
  }

  .work-detail {
    padding: 50px 0;
  }

  .work-introduction {
    margin-top: 50px;
  }

  .work-heading {
    margin-bottom: 24px;
  }

  .work-lead {
    font-size: 18px;
  }

  .work-information {
    margin-top: 50px;
    padding: 30px 20px;
  }

  .work-information dl div {
    flex-direction: column;
    gap: 6px;
  }

  .work-information dt,
  .work-information dd {
    width: 100%;
  }

  .work-point {
    flex-direction: column;
    gap: 24px;
    margin-top: 50px;
  }

  .work-point-image,
  .work-point-text {
    width: 100%;
    
  }

  .back-button {
    margin-top: 50px;
  }

    .footer {
    padding: 16px 10px;
  }

  .footer p {
    font-size: 11px;
    letter-spacing: 0.02em; 
  }
}

.fade-up {
  opacity: 0; 
  transform: translateY(50px); 
  transition: opacity 0.8s ease, transform 0.8s ease; 
}

.fade-up.is-show {
  opacity: 1; 
  transform: translateY(0); 
}
