/* =====================
   全体設定
===================== */

/* ページ全体の基本設定 */
body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  color: #3f3a36;
  background-color: #eef2f1;
}

/* 幅計算を安定させる */
* {
  box-sizing: border-box;
}

/* 画像が親要素からはみ出さないようにする */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* リンクの下線を消して、文字色を統一 */
a {
  text-decoration: none;
  color: #3f3a36;
}

/* ページ内リンクをなめらかにスクロール */
html {
  scroll-behavior: smooth;
}


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

/* ロゴとナビを横並びにする */
.header {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* サイトタイトル */
.logo {
  font-size: 22px;
  letter-spacing: 0.15em;
  font-weight: normal;
  opacity: 0.85;
}

/* ナビゲーションを横並びにする */
.nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ナビの文字 */
.nav a {
  font-size: 14px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

/* ナビにマウスを乗せたとき */
.nav a:hover {
  opacity: 0.4;
}


/* =====================
   Hero（メインビジュアル）
===================== */

/* メインビジュアル全体 */
.hero {
  padding: 20px 4% 110px;
  text-align: center;
}

/* Heroの中身の幅を整える */
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* メイン画像 */
.hero-img img {
  width: 100%;
  max-width: 720px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* メインコピー */
.hero-text {
  margin-top: 30px;
}

.hero-text h2 {
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.hero-text p {
  font-size: 12px;
  color: #959e96;
  letter-spacing: 0.1em;
}


/* =====================
   セクション共通
===================== */

/* About / Works / News / Contact 共通の幅と余白 */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 4% 0;
}

/* 各セクションの見出し */
.section-title {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.2em;
  font-weight: normal;
  margin-bottom: 40px;
  color: #959e96;
}


/* =====================
   About
===================== */

/* Aboutだけ余白を調整 */
#about.section {
  padding-top: 80px;
  padding-bottom: 100px;
}

/* プロフィール全体を横並びにする */
.about-box {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 820px;
  margin: 0 auto;
}

/* プロフィール画像 */
.about-img img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* プロフィール文の白カード */
.about-text {
  flex: 1;
  max-width: 600px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  line-height: 1.8;
  font-size: 14px;
}

/* 名前 */
.name {
  font-size: 16px;
  margin-bottom: 20px;
}


/* =====================
   Works
===================== */

/* Worksだけ上の余白を少し狭くする */
#works.section {
  padding-top: 10px;
}

/* 作品カードを2列に並べる */
.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
  justify-items: center;
}

/* 作品カード */
.work-item {
  width: 100%;
  max-width: 430px;
  background-color: rgba(255, 255, 255, 0.72);
  padding: 20px;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;

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

/* 作品カードにマウスを乗せたとき */
.work-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09);
}

/* 作品カードの画像 */
.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

/* 作品説明部分 */
.work-text {
  padding: 20px 6px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-text h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.08em;
}

.work-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

/* 使用ツールの表示 */
.work-text span {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  color: #959e96;
  letter-spacing: 0.08em;
}


/* バナー制作カード内の画像エリア */
.banner-area {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
}

/* バナー3枚を横並びにする */
.banner-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin: 20px 0;
  padding: 0 4px;
}

/* バナー画像 */
.banner-list img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}


/* =====================
   News
===================== */

/* News全体 */
.news-list {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #cfd6d4;
}

/* 日付 */
.news-list dt {
  width: 22%;
  padding: 16px 0;
  border-bottom: 1px solid #cfd6d4;
  color: #959e96;
}

/* 内容 */
.news-list dd {
  width: 78%;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #cfd6d4;
}


/* =====================
   Contact
===================== */

/* Contactの説明文 */
.contact-text {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: #3f3a36;
}

/* フォーム全体 */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ラベル */
.contact-form label {
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

/* 入力欄 */
.contact-form input,
.contact-form textarea {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #cfd6d4;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-family: inherit;
}

/* メッセージ欄 */
.contact-form textarea {
  height: 160px;
}

/* 送信ボタン */
.contact-form button {
  width: 200px;
  margin: 20px auto 0;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background-color: #959e96;
  color: #fff;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
}

/* 送信ボタンにマウスを乗せたとき */
.contact-form button:hover {
  opacity: 0.7;
}


/* =====================
   上に戻るボタン
===================== */

.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #3f3a36;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.to-top:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}


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

.footer {
  margin-top: 120px;
  padding: 24px;
  text-align: center;
  background-color: #959e96;
  color: #fff;
  font-size: 12px;
}

/* =====================
   Works詳細ページ 共通
   works-cake.html などで使う
===================== */

/* 詳細ページ全体の幅と上余白 */
.work-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 4% 0;
}

/* モックアップ画像の外側 */
.detail-img {
  max-width: 600px;
  margin: 0 auto 50px;
}

/* モックアップ画像 */
.detail-img img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* 作品説明の白カード */
.detail-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 45px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  line-height: 1.9;
  font-size: 14px;
}

/* 作品名 */
.detail-text h3 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 30px;
}

/* 説明リスト全体 */
.detail-text dl {
  margin: 0;
}

/* 項目名：サイト名 / 使用ツール など */
.detail-text dt {
  margin-top: 24px;
  color: #959e96;
  letter-spacing: 0.1em;
  font-size: 13px;
}

/* 項目の内容 */
.detail-text dd {
  margin: 8px 0 0;
  font-size: 14px;
}

/* View Siteリンク */
.site-link {
  color: #6f776f;
  font-weight: 500;
  transition: 0.3s;
  border-bottom: 1px solid transparent;
}

/* View Siteにマウスを乗せた時 */
.site-link:hover {
  opacity: 0.6;
  border-bottom: 1px solid #959e96;
}

/* サイトURLや補足などの小さい文字 */
.note {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 0;
}

/* サイト全体スクショの外側 */
.detail-full {
  margin: 70px auto;
  text-align: center;
  background: none;
  padding: 0;
}

/* サイト全体スクショ */
.detail-full img {
  width: 80%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 60px auto 10px;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* こだわりポイント全体 */
.detail-points {
  margin-top: 90px;
  text-align: center;
}

/* こだわりポイント見出し */
.detail-points h3 {
  text-align: center;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

/* こだわりポイント3つを横並びにする */
.point-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

/* こだわりポイントのカード */
.point-item {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 18px;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  height: 100%;

  /* 画像・見出し・文章を縦に並べる */
  display: flex;
  flex-direction: column;
}

/* 画像を入れるエリア */
.point-img-area {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* こだわりポイント画像 */
.point-img-area img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* こだわりポイント見出し */
.point-item h4 {
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.1em;
  margin: 8px 0 10px;
}

/* こだわりポイント本文 */
.point-item p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

/* 戻るリンクの外側 */
.back-area {
  text-align: center;
  margin-top: 80px;
}

/* Back to Works */
.back-link {
  display: block;
  text-align: center;
  margin-top: 50px;
  color: #3f3a36;
  font-size: 13px;
  letter-spacing: 0.15em;
  opacity: 0.7;
  transition: 0.3s;
}

/* Back to Worksにマウスを乗せたとき */
.back-link:hover {
  opacity: 0.4;
}

/* =====================
   バナー詳細ページ
   works-banner.html 用
===================== */

/* バナー一覧（3列レイアウト） */
.banner-detail-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3列 */
  gap: 28px;
  max-width: 1000px;
  margin: 80px auto 0;
}


/* =====================
   バナーカード
===================== */

.banner-detail-item {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}


/* バナー画像 */
.banner-detail-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin-bottom: 16px;
}


/* タイトル（例：美容室キャンペーン） */
.banner-detail-item h3 {
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.08em;

  /* 上下の余白 */
  margin: 20px 0 10px;
}


/* 説明文 */
.banner-detail-item p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}


/* =====================
   Coming Soon（特別カード）
===================== */

/* グレーの四角 */
.coming-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 正方形にする */
  background: #f3f3f3;

  /* 中央寄せ（超重要） */
  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 16px;
}

/* Coming Soon文字 */
.coming-box p {
  font-size: 20px;
  color: #999;
  letter-spacing: 0.12em;
  margin: 0;
}


/* Coming Soonカードのテキスト調整 */
.coming-soon>h3 {
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.08em;

  margin: 20px 0 10px;
}

.coming-soon>p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

/* =====================
   レスポンシブ対応
   iPad・スマホ用
===================== */

/* タブレット用：画面幅が900px以下 */
@media screen and (max-width: 900px) {

  /* ヘッダー */
  .header {
    flex-direction: column;
    gap: 20px;
  }

  /* Aboutを縦並びにする */
  .about-box {
    flex-direction: column;
    text-align: center;
  }

  /* Worksを1列にする */
  .works-list {
    grid-template-columns: 1fr;
  }

  /* 作品カード */
  .work-item {
    max-width: 520px;
  }

  /* バナー詳細ページを2列にする */
  .banner-detail-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* こだわりポイントを1列にする */
  .point-list {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}


/* スマホ用：画面幅が768px以下 */
@media screen and (max-width: 768px) {

  /* 全体の文字を少し小さく */
  body {
    font-size: 14px;
  }

  /* ヘッダー */
  .header {
    padding: 24px 5%;
  }

  .logo {
    font-size: 18px;
  }

  /* ナビ */
  .nav ul {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    font-size: 12px;
  }

  /* Aboutを縦並びにする */
  .about-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Worksを1列にする */
  .works-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
  width: calc(100% - 40px);
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

  .about-text {
    margin-top: 20px;
    text-align: left;
    line-height: 1.8;
  }

  /* Hero */
  .hero {
    padding: 30px 5% 80px;
  }

  .hero-img img {
    max-width: 100%;
  }

  .hero-text h2 {
    font-size: 17px;
    line-height: 1.8;
  }

  .hero-text p {
    font-size: 11px;
  }

  /* セクション共通 */
  .section {
    padding: 80px 5% 0;
  }

  .section-title {
    font-size: 21px;
    margin-bottom: 32px;
  }

  /* About */
  #about.section {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .about-img img {
    width: 140px;
    height: 140px;
  }

  .about-text {
    padding: 28px;
    text-align: left;
    line-height: 1.8;
  }

  /* Works */
  #works.section {
    padding-top: 0;
  }

  .work-item {
    min-height: auto;
    padding: 20px;
  }

  .banner-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .banner-list img {
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    border-radius: 8px;
    object-fit: cover;
  }

  /* News */
  .news-list {
    display: block;
  }

  .news-list dt,
  .news-list dd {
    width: 100%;
  }

  .news-list dt {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .news-list dd {
    padding-top: 0;
  }

  /* Contact */
  .contact-text {
    text-align: left;
  }

  /* 詳細ページ */
  .work-detail {
    padding: 30px 5% 0;
  }

  .detail-text {
    padding: 28px;
  }

  .detail-full img {
    width: 90%;
  }

  /* バナー詳細ページ */
  .banner-detail-list {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* 上に戻るボタン */
  .to-top {
    right: 18px;
    bottom: 18px;
    font-size: 11px;
  }
}

