body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #111;
  line-height: 1.7;
} /* ================================
# 共通コンテナ
================================ */
.content-container {
  width: 60%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

/* ================================
# Header
================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100px;
  margin-top: 80px;
}

.logo img {
  display: block;
  width: 200px; /* デフォルト（スマホ想定） */
  height: auto;
}

/* タブレット以上（768px〜） */
@media (min-width: 768px) {
  .logo img {
    width: 200px; /* 少し大きめ */
  }
}

/* デスクトップ以上（1024px〜） */
@media (min-width: 1024px) {
  .logo img {
    width: 300px; /* さらに大きめ */
  }
}

.right-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.sns-icons {
  display: flex;
  gap: 12px;
}

nav {
  display: flex;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  color: #222;
}

.sns-icons a {
  display: inline-flex;
  padding: 4px;
}
.sns-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}
.sns-icons a img:hover {
  opacity: 0.6;
}

.nav-menu li {
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #a64e4d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu li a:hover::after {
  transform: scaleX(1);
}

/* ================================
# Hamburger
================================ */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 150;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: none; /* デフォルトは非表示 */
}

.hamburger span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.hamburger span:nth-child(1) {
  top: 30%;
}
.hamburger span:nth-child(2) {
  top: 60%;
}
.hamburger span:nth-child(3) {
  top: 90%;
}

.hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
}
.hamburger.is-active span {
  background-color: #fff;
}

/* ================================
# Drawer
================================ */
.drawer {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  z-index: 130;
  width: 100%;
  height: 100vh;
  background-color: #333;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer.is-active {
  visibility: visible;
  opacity: 1;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 50px;
  align-items: center;
}

.drawer__link {
  display: block;
  padding: 12px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
}

.drawer__sns {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}
.drawer__sns img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: opacity 0.3s;
}
.drawer__sns img:hover {
  opacity: 0.6;
}

/* ================================
# Media Queries
================================ */
/* 1200px以下はハンバーガー表示 */
@media (max-width: 1200px) {
  .hamburger {
    display: block;
  }
  .nav-menu,
  .sns-icons {
    display: none;
  }
}

/* 1201px以上はPCナビ表示 */
@media (min-width: 1201px) {
  .hamburger {
    display: none;
  }
}

/* ===============================================
# 共通
=============================================== */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  background-size: cover;
  background-repeat: no-repeat;
  font-style: italic;
  vertical-align: middle;

  shape-margin: 0.75rem;
}

.sp-show {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-show {
    display: block;
  }
  .sp-none {
    display: none;
  }
}

/* hero-wrapper は常に表示 */
.hero-wrapper1 {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  background: #fff; /* 最初は白 */
}

.hero-wrapper1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      at 16% 22%,
      hsla(0, 2%, 66%, 0.64) 0px,
      transparent 50%
    ),
    radial-gradient(at 0% 100%, hsla(22, 0%, 91%, 1) 0px, transparent 50%),
    radial-gradient(at 92% 82%, hsla(0, 47%, 56%, 0.78) 0px, transparent 50%);
  opacity: 0; /* 最初は白だけが見える */
  animation: gradIn 4s forwards;
  animation-delay: 1.2s; /* final-message と同じタイミングにするならここ調整 */
  z-index: 1; /* 背景として扱う */
}

.hero-wrapper1 > .content-container {
  position: relative;
  z-index: 2;
}

@keyframes gradIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.mainvisual {
  position: relative;
  width: 100%;
  height: 100vh; /* 画面いっぱい */
  display: flex;
  align-items: flex-start; /* 上寄せ */
  justify-content: flex-end; /* 右寄せ */
  padding: 120px 0; /* 上に余白、右に余白 */
  box-sizing: border-box;
}

/* タイトル全体を縦に並べる */
.site-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  z-index: 2;

  font-family: "yu-gothic-pr6n", sans-serif;
  font-size: 5.5rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
  color: #111;
  margin: 0;
}

.title.simply,
.title.smartly {
  margin: 0; /* まず余白をリセット */
  padding: 0; /* 内側の余白もリセット */
  line-height: 1; /* 行間も少し詰める（デフォルト1.6くらい） */
}

.title.special-title {
  margin-top: 20px; /* 下げたい量に調整 */
}

.title.final-message {
  animation-delay: 2s;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #111;
  margin-top: 1em;
}

/* 各タイトル共通 */
.title {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.6s ease forwards;
}

/* 個別の遅延 */
.title.simply {
  animation-delay: 0.2s;
}
.title.smartly {
  animation-delay: 0.8s;
}
.title.special-title {
  animation-delay: 1.4s;
  margin-top: 20px; /* 少し下げる */
}
.title.final-message {
  opacity: 0;
  transform: none; /* 横移動なし */
  animation: fadeIn 1s ease forwards;
  animation-delay: 2.2s; /* Designs の後にふわっと出現 */
}

/* 左からスライドイン */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  80% {
    opacity: 1;
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* フェードイン（ふわっと） */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.scrollbar-text_05 {
  position: absolute;
  left: 20%;
  top: 70%;
  writing-mode: vertical-rl;
}

/* 線のアニメーション部分 */
.scrollbar-text_05::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -115px; /* 出現位置 */
  margin: auto;
  width: 1px;
  height: 100px;
  background-color: #000;

  /* アニメーション */
  animation-name: scrollbar-text_05Anim;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* 線のアニメーション */
@keyframes scrollbar-text_05Anim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media screen and (max-width: 1024px) {
  /* タブレット */
  .content-container {
    width: 80%;
  }

  .logo img {
    height: 45px;
  }

  .site-titles {
    align-items: flex-end;

    gap: 16px;
  }

  .site-titles img {
    /* タイトル画像も少し縮小 */
    height: auto;
  }

  .right-side {
    gap: 8px; /* SNSとナビの間隔を少し狭く */
  }
}

@media screen and (max-width: 768px) {
  .content-container {
    width: 90%;
  }

  .right-side nav,        /* PC用ナビは非表示 */
  .nav-menu {
    display: none;
  }

  .hamburger {
    /* ハンバーガー表示 */
    display: block;
  }

  .sns-icons {
    justify-content: flex-end; /* SNS右寄せ */
  }

  .logo img {
    height: 40px; /* ロゴを小さめに */
  }

  .site-titles {
    gap: 6px;
    align-items: flex-end; /* 右寄せ継続 */
  }

  .site-titles img {
    justify-content: flex-end;
    height: auto;
  }
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  text-align: center;
  margin: 100px 0 80px 0;
}

.works-grid {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center;
  gap: 60px; /* 作品間の間隔 */
  margin: 0 auto;
}

.works-grid a {
  display: block;
  max-width: 400px; /* 画像サイズの上限 */
  width: 100%; /* スマホで横幅に合わせる */
}

.works-grid img {
  width: 100%; /* 親幅に合わせて縮小 */
  height: auto; /* 縦横比を維持 */
  display: block;
  border-radius: 8px; /* 任意で角丸 */
  object-fit: cover; /* 画像を切り抜きたい場合 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ふわっと影 */
  transition: transform 0.3s ease;
}

@media screen and (min-width: 768px) {
  .works-grid {
    display: grid;
    max-width: 1200px; /* 例: 親幅を十分確保 */
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr); /* 3列に均等割り */
    gap: 80px; /* 画像同士の間隔 */
  }

  .works-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* 念のため正方形を維持 */
    object-fit: cover; /* 画像をきれいに収める */
    border-radius: 12px; /* 角丸は好みで */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ふわっと影 */
    transition: transform 0.3s ease;
  }

  .works-grid img:hover {
    transform: scale(1.03); /* ホバーでちょっと拡大 */
  }
}

/* Skillsセクション */
#Skills .content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 100px;
  padding: 50px 0;
}

#Skills .content {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

#Skills img {
  width: 100px;
  height: 100px;
  margin-right: 20px;
  object-fit: contain;
}

#Skills .text {
  flex: 1;
  text-align: left;
  max-width: 100%;
}

#Skills .content-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 22px;
  margin: 0;
  line-height: 1.2;
  padding-top: 2px;
  font-weight: 700;
}

#Skills .text p {
  margin-top: 8px;
  width: 100%;
  line-height: 1.6;
}

@media (max-width: 768px) {
  #Skills .content-wrapper {
    grid-template-columns: 1fr 1fr; /* 1カラム */
    gap: 40px; /* コンテンツ間に余白 */
  }

  #Skills .content-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 22px;
    font-weight: bold; /* 太字 */
    text-align: center; /* 中央寄せ */
    margin: 0;
    line-height: 1.2;
    padding-top: 2px;
  }

  #Skills .content {
    flex-direction: column; /* 縦並び */
    align-items: center; /* 中央寄せ */
    text-align: center; /* テキストも中央寄せ */
  }

  #Skills img {
    margin: 0 0 16px 0; /* 下に余白 */
    width: 60%;
  }

  #Skills .text {
    max-width: 90%; /* スマホ幅に収める */
  }

  #Skills .content-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  #Skills .text p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Profileセクション */
#Profile .content {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center; /* 中央寄せ */
  gap: 40px;
}

#Profile .content img {
  width: 80%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

#Profile .content p {
  font-size: 16px;
  text-align: left;
  line-height: 1.6;
  width: 80%;
}

#Profile .button006 a {
  margin-top: 80px;
}

@media screen and (min-width: 768px) {
  #Profile .content {
    flex-direction: row; /* 横並び */
    justify-content: flex-start; /* 左寄せ（必要に応じて center にも） */
    /* 上揃え */
    gap: 30px;
  }

  #Profile img {
    width: 200px;
    height: 200px;
    border-radius: 5%;
    margin-right: 60px;
  }

  #Profile p {
    margin: 40px;
    text-align: left !important;
  }

  #Profile .button006 a {
    margin-top: 15px;
    align-items: center;
  }
}

/* Serviceセクション */
#Service .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* 列・行のすき間 */
  justify-content: flex-start; /* space-betweenは最終行が伸びるので非推奨 */
  padding: 40px 0;
}

#Service .content-wrapper .content {
  flex: 0 0 calc((100% - 80px) / 3); /* 3列。80px = 40pxのギャップ×2 */
  max-width: calc((100% - 80px) / 3);
  box-sizing: border-box;
  text-align: center;
}

#Service .text {
  margin-top: 20px;
}
#Service .content img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block; /* imgをブロック化 */
  margin: 0 auto;
}
#Service .content-title {
  text-align: center;
  font-size: 22px;
  font-family: "Noto Sans", sans-serif;
  margin: 10px 0 4px 0;
}
#Service .content-english-title {
  text-align: center;
  color: #a64e4d;
  font-size: 16px;
  font-weight: 300;
  margin: 0 0 12px 0;
}
#Service .content p {
  text-align: left; /* 左揃え */
  margin: 0; /* 余白調整（必要なら） */
  line-height: 1.6; /* 行間（見やすくするなら） */
}

@media (max-width: 768px) {
  #Service .content-wrapper {
    flex-direction: column; /* 縦並び */
    align-items: center; /* 中央寄せ */
    gap: 40px; /* ブロック間の余白 */
  }

  #Service .content-wrapper .content {
    flex: none;
    max-width: 70%;
    flex-direction: column; /* アイコン→テキストを縦並び */
    align-items: center;
    text-align: left;
    line-height: 1.6;
  }

  #Service img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px; /* アイコンとテキストの余白 */
  }
}

/* Contactセクション */
.contact p {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}

.contact-form .form-group {
  margin-bottom: 15px;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.contact-form input,
.contact-form textarea {
  width: 50%;
  padding: 10px;
  border: 2px solid #a64e4d;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a64e4d;
}

/* Profileセクション */
section.profile {
  padding: 40px 0;
}

.profile h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  text-align: center;
  margin: 40px 0;
}

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.profile-image img {
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.profile-side-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 1em 0;
  padding: 0;
}

.profile-side-text p {
  margin: 0 0 1em 0;
  padding: 0;
}

/* 共通デザイン */
.button006,
.button007,
.button008,
.button009 {
  position: relative; /* 矢印の基準にする */
  display: block;
  background: #eee;
  padding: 10px 20px;
  border-radius: 5px;
  color: #313131;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  text-align: center;
  margin: 40px auto;
  max-width: 180px;
}

/* 矢印 */
.button006::before,
.button007::before,
.button008::before,
.button009::before {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: -2em;
  transform: translateY(calc(-50% - 2px)) rotate(30deg);
  width: 12px;
  height: 2px;
  background-color: #a64e4d;
  transition: 0.3s;
}

.button006::after,
.button007::after,
.button008::after,
.button009::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2em;
  transform: translateY(-50%);
  width: 40px; /* ← 矢印の長さ */
  height: 2px;
  background-color: #a64e4d;
  transition: 0.3s;
}

/* ホバー */
.button006:hover,
.button007:hover,
.button008:hover,
.button009:hover {
  background: #a64e4d;
  color: #edf6ff;
}

.button006:hover::before,
.button007:hover::before,
.button008:hover::before,
.button009:hover::before,
.button006:hover::after,
.button007:hover::after,
.button008:hover::after,
.button009:hover::after {
  right: -2.5em;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .button006,
  .button007,
  .button008,
  .button009 {
    display: block;
    width: 100%;
    margin: 20px auto;
    padding: 12px 15px; /* スマホ時の余白 */
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between; /* 左端と右端に配置 */
  align-items: center;
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 50px 20px;
  width: 100%;
}

/* ナビは左寄せ */
.footer-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* コピーライトは右寄せ */
.footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 12px;
}
@media screen and (max-width: 768px) {
  .footer-bottom {
    flex-direction: column; /* 縦並びに変更 */
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 横方向も中央寄せ */
    gap: 20px; /* ナビとコピーライトの間隔 */
  }

  .footer-bottom p {
    text-align: center; /* コピーライト中央寄せ */
    margin-top: 0; /* gapで調整するので余白は不要 */
  }

  .footer-nav .nav-menu {
    justify-content: center; /* ナビも中央に */
  }
}

.contact-text {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}
