/* common */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
}

img {
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: #000;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* PCナビ（初期は非表示） */
.pc-nav {
  display: none;
}

/* top-page */

/* header */

header {
  /* width: 100%; */
  padding-bottom: 25px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.header-logo {
  text-align: center;
  width: auto;
  margin: 0;
  padding: 25px 0 0px 10px;
}

.logo svg {
  width: 120px;
  height: auto;
}

.logo svg path {
  fill: #333;
  transition: opacity 0.3s;
}

.logo:hover svg path {
  opacity: 0.6;
}

.header-nav {
  display: flex;
  flex-direction: column;
}

header .main-menu {
  width: 100%;
  font-size: 17px;
}

header .main-menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
}

header .main-menu li {
  padding: 0 7px 0 7px;
  white-space: nowrap;
}

header .main-menu li + li {
  border-left: 1px solid #ccc;
}

header .main-menu a {
  display: block;
  color: #333;
  text-shadow: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

header .main-menu a:hover {
  opacity: 0.6;
}

header .icon-navi {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

header .icon-navi a {
  transition: opacity 0.4s;
  opacity: 1;
}

header .icon-navi a:hover {
  opacity: 0.7;
}

header .icon-navi i {
  font-size: 35px;
  color: #333333;
}

/* =========================== ハンバーガー =========================== */
/*
  ⚠️ JS連動
  クラス名・構造変更NG
*/

.hamburger {
  width: 38px;
  height: 32px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: none;
  border: none;
  padding: 0px;
  margin: 10px;
  cursor: pointer;

  /* SPメニューより前に出す */
  position: relative;
  z-index: 49; /* ⚠️ SPメニューより前 */
}

/* 3本線 */
.hamburger span {
  display: block;
  width: 100%;
  height: 6px;
  background: #000000bb;
  border-radius: 5px;

  /* 形が変わるアニメーション */
  transition:
    transform 0.4s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

/* ===========================  ハンバーガーメニュー押したときのSP menu  =========================== */
/*
  ⚠️ JS連動
  ⚠️ position / z-index 注意
*/

.sp-menu {
  position: fixed; /*⚠️ 注意*/
  inset: 0;
  background: rgba(0, 0, 0, 0.884);
  display: flex;
  align-items: center;
  justify-content: center;

  /* 最初は画面外（上） */
  transform: translateY(-100%);
  transition: transform 0.5s ease;

  /* ハンバーガー(×)より後ろ */
  z-index: 48; /*⚠️ SPメニューより前*/
}

/* JSで is-open が付いたら画面内へ */
.sp-menu.is-open {
  transform: translateY(0); /*⚠️ JS連動*/
}

/* メニューリスト */
.sp-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

/* 各メニュー間隔 */
.sp-menu li {
  margin: 24px 0;
}

/* メニュー文字 */
.sp-menu a {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-decoration: none;

  /* ホバー時アニメーション */
  transition:
    color 0.4s ease,
    letter-spacing 0.4s ease;
}

/* ポインター乗った瞬間に変化 */
.sp-menu a:hover {
  color: #535353;
  letter-spacing: 0.25em;
}

.pc-nav a {
  /* ホバー時アニメーション */
  transition: opacity 0.4s;
}

.pc-nav a:hover {
  opacity: 0.7;
}

/* =========================== ハンバーガー → 戻るボタン =========================== */
/*
  ⚠️ ここ触るな
  JSトグル前提
*/

/* 開いた状態は白 */
.hamburger.is-open span {
  background: #fff; /*⚠️ ここ触るな*/
}

/* 上の線：斜め */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(11px) rotate(-45deg); /*⚠️ ここ触るな*/
}

/* 真ん中消す */
.hamburger.is-open span:nth-child(2) {
  opacity: 0; /*⚠️ ここ触るな*/
}

/* 下の線：斜め */
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-14px) rotate(45deg); /*⚠️ ここ触るな*/
}

/* hero */

.hero {
  position: relative;
  background-image: url("../img/hero-img.png");
  background-size: cover;
  background-position: 85% center ;
  padding: 140px 0px;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-inner {
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero p {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
  margin-top: 20px;
  font-size: 18px;
  padding: 14px 28px;
}

.cta-note {
  font-size: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* service */

.service {
  background: #f9f9f9;
  padding: 35px 0;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  color: #555;
}

.service h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.service-sub {
  font-size: 14px;
  margin-bottom: 40px;
  color: #888;
}

.service-works {
  margin-bottom: 50px;
}

.service-works h2 {
  text-align: center;
  margin-bottom: 30px;
}

.works-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.works-item {
  width: calc((100% - 20px) / 2);
  text-align: center;
  padding: 25px 20px;
  background: #fff;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.works-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.works-item i {
  font-size: 35px;
  margin-bottom: 15px;
  color: #333;
}

.works-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.works-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.service-note {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}

.service-flow-title {
  margin: 40px 0 20px;
  font-size: 22px;
}

.service-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  margin-bottom: 50px;
  text-align: center;

  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

/* ホバー（PC用だけど入れといてOK） */
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step {
  display: block;
  font-size: 12px;
  color: #fff;
  background: #333;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.service-item i {
  font-size: 40px;
  color: #333;
  display: block;
  margin-bottom: 10px;
}

.service-item h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

.service-cta-note {
  color: #313131;
}

/* portfolio */

.portfolio {
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  padding: 25px 0;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  color: #707070;
}

.portfolio-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.portfolio h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.portfolio section {
  width: 100%;
}

.portfolio section + section {
  padding-top: 30px;
}

.portfolio a {
  transition: opacity 0.4s;
}

.portfolio a:hover {
  opacity: 0.6;
}

.portfolio img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s;
}

.portfolio a:hover img {
  transform: scale(1.05);
}

.portfolio h3 {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

.portfolio p {
  font-size: 13px;
  color: #777;
}

.portfolio-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 25px;
  background: #333;
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
}

.portfolio-cta {
  margin: 40px 0 0 0;
}

/* top-page-navi */

.top-page-navi {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  font-size: 50px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.top-page-navi.active {
  opacity: 1;
  visibility: visible;
}

.top-page-navi a {
  color: #333;
}

.top-page-navi a:hover {
  opacity: 0.7;
}

/* footer */

footer {
  width: 100%;
  text-align: center;
  padding: 0px 0 10px 0;
}

.footer-inner {
}

footer > div div {
  width: 50%;
  margin: 0 auto;
  text-align: center;
  padding: 10px 0;
}

footer img {
  width: 150px;
}

footer .main-menu {
  width: 100%;
  font-size: 25px;
}

footer .main-menu li {
  border-top: 1px solid #707070;
  padding: 10px 0;
}

footer .main-menu li:nth-child(4) {
  border-bottom: 1px solid #707070;
}

footer .main-menu a {
  color: rgb(218, 218, 218);
  text-shadow: 2px 2px 0 #707070;
  transition: opacity 0.4s;
}

footer .main-menu a:hover {
  opacity: 0.6;
}

footer small p {
  font-family: "游明朝";
  color: #707070;
}

/* 追加記述 */
.btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background: #555;
}

/* =========================== レスポンシブ =========================== */
@media (min-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0px;
  }

  /* 上段：ロゴとナビ */
  .header-inner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ナビ横並び */
  .header-nav {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .pc-nav {
    display: block;
  }

  .pc-nav ul {
    display: flex;
    gap: 25px;
  }

  .pc-nav a {
    font-size: 18px;
    font-weight: 500;
  }

  /* ハンバーガー消す */
  .hamburger {
    display: none;
  }

  .sp-menu {
    display: none;
  }

  header .icon-navi {
    justify-content: flex-end;
  }

  /* SNSを右下へ */
  .icon-navi {
    justify-content: flex-end;
    gap: 20px;
    /* padding-right: 10px; */
  }

  .icon-navi i {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .pc-nav a {
    font-size: 20px;
    font-weight: 500;
  }

  .hero {
    background-position: center top ;
  }

}
