/*
Theme Name: portfolio
Author: Mami Hashizume
Description: オリジナルのポートフォリオテーマです。
Version: 1.0
*/

/* ==========================================
  1. 全体共通スタイル（reset, base, 共通パーツなど）
========================================== */

/* リセット */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body */
body{
  background: #fdf8f3;
  margin: 0;
  overflow-x: hidden;
  font-family:
  "Yu Gothic",
  "Hiragino Kaku Gothic ProN",
  sans-serif;
  color: #4b342f;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* タイトル */
.section-heading{
  text-align: center;
  margin-bottom: 70px;
}

.section-heading h2{
  font-size: 60px;
  color: #4e3a33;
  margin-bottom: 6px;
}

.section-heading p{
  font-size: 18px;
  color: #9c7d6f;
  letter-spacing: 0.1em;
}

.section-title {
  display: block;       /* inline-block から block に変更 */
  text-align: center;   /* 文字を中央揃えにする */
  font-size: 50px;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 8px;
  margin: 0 auto 0px;  /* 上下左右の余白を中央に */
  margin-top: 40px;
  color: #4e3a33;
}

/* タイトル下のサブタイトル */
.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #9c7d6f;
  margin-top: -30px;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

/* ボタン */
.btn{
  display: inline-block;

  text-decoration: none;

  background: #e6a19d;
  color: white;

  padding: 20px 50px;

  border-radius: 999px;

  font-size: 20px;
  font-weight: bold;

  transition: 0.3s;
}

/* hover */
.btn:hover{
  background: #dc918d;
}

/* new */
.new-tag{
  color: #d86f6f;
}

/* アニメーション共通クラス */

/* 初期状態：下に20px下げて透明に */
.fv-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* スクリプトでis-showがついたら表示 */
.fv-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* スクロールアニメーション（初期状態） */
.fadein {
  opacity: 0;
  transform: translateY(30px); /* 30px下に下げておく */
  transition: opacity 0.8s ease, transform 0.8s ease; /* 0.8秒かけてなめらかに動く */
}


/* ==========================================
  2. PC版のセクション別スタイル
========================================== */

/* =========================
  header
========================= */

header{
  width: 100%;
  padding-top: 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* nav */
.nav{

}
.top-nav ul {
  list-style: none;     /* 黒丸を消す */
  padding: 0;           /* 左側の初期余白を消す */
  margin: 0;
  display: flex;        /* 項目を横並びにする */
  justify-content: center; /* 中央揃えにする場合 */
  gap: 24px;            /* リンク同士の隙間 */
}
.top-nav a{
  display: inline-block;
  text-decoration: none;
  background: #f3e9e1;
  color: #5c463d;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}
.top-nav a:hover{
  background: #e8d5cb;
}

.nav ul {
  list-style: none;     /* 黒丸を消す */
  padding: 0;           /* 左側の初期余白を消す */
  margin: 0;
  display: flex;        /* 項目を横並びにする */
  justify-content: center; /* 中央揃えにする場合 */
  gap: 24px;            /* リンク同士の隙間 */
}
/* navボタン */
.nav a{
  display: inline-block;
  text-decoration: none;
  background: #f6e7df;
  color: #6b4b42;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

/* hover */
.nav a:hover{
  background: #efcfc1;
}

/* =========================
  hero / hero text
========================= */

/* メインビジュアル */
.hero{
  width: 100%;
  min-height: 1000px;
  background-image: url("img/top-background.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

}

.hero-text{
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translateY(-45%);
  max-width: 600px;
}

/* 小さい文字 */
.sub-title{
  font-size: 20px;
  color: #7b6457;
  margin-bottom: 25px;
}

/* メインタイトル */
.hero-text h1{
  font-size: 50px;
  line-height: 1.5;
  color: #4e3a33;
  margin-bottom: 35px;
}

/* 説明文 */
.text{
  font-size: 22px;
  line-height: 2;
  color: #7b6457;
  margin-bottom: 40px;
}

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

.about{
  width: 100%;
  overflow: hidden;
  background: #fffaf7;
}

/* 背景画像 */
.about-bg{
  width: 100%;
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: url("img/about-background.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

/* 右テキスト */
.about-text{
  width: 50%;
  max-width: 550px;
  margin-left: auto;
  margin-right: 5%;
}

/* 1項目ずつ */
.about-item{
  margin-bottom: 30px;
}

/* 見出し */
.about-item h3{
  font-size: 24px;
  color: #3f302b;
  margin-bottom: 7px;
}

/* 説明文 */
.about-item p{
  font-size: 18px;
  line-height: 1.8;
  color: #6f625d;
}

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

.works{
  padding: 120px 5%;
  background: #fffdfb;
  position: relative;
  overflow: hidden;
}

/* 内側 */
.works-inner{
  max-width: 1200px;
  margin: 0 auto;
}

/* 一覧 */
.works-list{
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 35px;
}

/* カード */
.works-item{
  background: #fff;

  border-radius: 24px;

  padding: 18px;

  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.05);

  transition: 0.3s;
}

/* hover */
.works-item:hover{
  transform: translateY(-8px);
}

/* 画像 */
.works-item img{
  width: 100%;

  border-radius: 18px;

  display: block;
}

/* テキスト */
.works-text{
  text-align: center;

  margin-top: 20px;

  font-size: 24px;
  font-weight: bold;

  line-height: 1.8;

  color: #4e3a33;
}
.works-text span{
  display: block;
}
.post-thumb{
  height: auto;
}

/* ボタン */
.works-button{
  text-align: center;

  margin-top: 70px;
}

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

.works-detail-section{
  width: 100%;
  min-height: 100vh;
  background-image: url("img/works-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding:40px 5% 80px;
}

.works-detail-section .section-title {
  display: block;       /* inline-block から block に変更 */
  text-align: center;   /* 文字を中央揃えにする */
  font-size: 50px;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 8px;
  margin: 0 auto 0px;  /* 上下左右の余白を中央に */
  margin-top: 40px;
  color: #4e3a33;
}

/* メイン */
.detail-inner{
  max-width: 1200px;
  margin:
  0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

/* 左画像 */

.detail-image{
  width: 420px;
}
.detail-image img{
  max-width: 100%;
  object-fit: contain;
  height: auto;
  border-radius: 20px;
  box-shadow:
  0 10px 25px rgba(0,0,0,0.08);
}

/* 右テキスト */

.detail-text{
  max-width: 500px;
  margin-left: 40px;
  margin-top: 70px;
}
.detail-text h3{
  font-size: 30px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.detail-item{
  margin-bottom: 20px;
}
.detail-item h4{
  font-size: 22px;
}
.detail-item p{
  font-size: 20px;
}

/* ドット */

.slider-dots{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
}

.slider-dots span{
  width: 10px;
  height: 10px;
  background: #c7b1a8;
  border-radius: 50%;
}

/* ========================================================
   Works一覧ページ用スタイル
========================================================= */

.works-page-section {
  background: #fdf8f3; /* トップと同じ、より温かみのある薄ピンクベージュ */
  padding: 60px 0 80px;
  min-height: 100vh; /* 下が白くならない対策 */
  position: relative;
}

/* カテゴリタブ */
.works-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  margin-top: 50px;
}

.tab-btn {
  border: none;
  background: #fff;
  color: #7b6457;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background: #e6a19d; /* トークンカラーの温かいピンク */
  color: #fff;
}

/* 実績グリッド（PCは4列） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 80px;
}

/* 実績カード */
.works-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.works-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* 画像の比率をきれいに統一 */
  overflow: hidden;
  background: #f7f7f7;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠線に合わせて綺麗に画像をトリミング */
  display: block;
}

.card-body {
  padding: 20px 15px;
  text-align: center;
}

.card-body h3 {
  font-size: 18px;
  color: #4e3a33;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: #8c7366;
}

/* お問い合わせエリア */
.works-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  padding: 40px 20px;
  border-radius: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.works-cta p {
  font-size: 16px;
  color: #4e3a33;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.news{
  padding: 120px 5%;

  background: linear-gradient(
    180deg,
    #fdf5f2 0%,
    #f9e7e5 100%
  );

  border-radius: 0 0 40px 40px;

  position: relative;
  overflow: hidden;
}

/* 内側 */
.news-inner{
  max-width: 900px;
  margin: 0 auto;
}

/* タイトル */
.news-heading{
  text-align: center;

  margin-bottom: 50px;
}

.news-heading h2{
  font-size: 56px;
  color: #3f302b;

  margin-bottom: 8px;
}

.news-heading p{
  font-size: 20px;
  color: #7b6457;
}

/* 一覧 */
.news-list{
  background: rgba(255,255,255,0.4);

  backdrop-filter: blur(10px);

  border-radius: 24px;

  padding: 10px 30px;
}

/* item */
.news-item{
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid #e5d6cf;
}

/* 最後だけ線なし */
.news-item:last-child{
  border-bottom: none;
}

/* 日付 */
.news-date{
  min-width: 220px;
  font-size: 22px;
  font-weight: bold;
  color: #4e3a33;
  display: flex;
  align-items: flex-start;
  gap: 12px;                  /* NEWと日付の間の余白 */
  flex-direction: column;     /* 上下配置に変更 */
}
/* ★ 追加：NEWバッジの固定指定（クラス名が .new の場合の例） */
.news-date .new-tag {
  display: inline-block;
  margin-right: 0; 
  line-height: 1;
}

/* テキスト */
.news-text{
  font-size: 22px;
  color: #4e3a33;
  line-height: 1.8;
}

/* =========================
   skill
========================= */

.skill-section {
  background: #f8f3e8; 
  position: relative;
  min-height: 100vh;
  padding:60px 0 80px;
}

.skill-section .section-title {
  display: block;       /* inline-block から block に変更 */
  text-align: center;   /* 文字を中央揃えにする */
  font-size: 50px;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 8px;
  margin: 0 auto 60px;  /* 上下左右の余白を中央に */
  margin-top: 40px;
  color: #4e3a33;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.skill-card {
  background: #fff;
  border-radius: 10px;
  padding: 45px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
}

.icon {
  font-size: 52px;
  margin-bottom: 25px;
  color: #a77c55;
}

.skill-card h3 {
  font-size: 30px;
  color: #8c6b52;
  margin-bottom: 25px;
}

.skill-card p {
  font-size: 18px;
  line-height: 2;
  color: #666;
}

/* =========================
   Service
========================= */

.service-section {
  padding:60px 0 80px;
  background: #fdf8f3;
  position: relative;
  min-height: 100vh;
}

.service-section .section-title {
  display: block;       /* inline-block から block に変更 */
  text-align: center;   /* 文字を中央揃えにする */
  font-size: 50px;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 8px;
  margin: 0 auto 60px;  /* 上下左右の余白を中央に */
  margin-top: 40px;
  color: #4e3a33;
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  width: 300px;
  background: #fff;
  border-radius: 18px;
  padding: 25px 20px 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 30px;
  margin-bottom: 18px;
  color: #333;
}

.service-card p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

.service-card span {
  font-size: 16px;
  color: #666;
}

/* カード背景 */

.pink {
  background: #fff7f7;
}

.yellow {
  background: #fff9ef;
}

.blue {
  background: #f1fbff;
}

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

.contact-section{
  width: 100%;
  padding:60px 0 80px;
  background: #f8f3e8; 
}

.contact-button p{
text-align: center;
}

/* 内側 */

.contact-inner{
  max-width: 900px;
  margin: 0 auto;
}

/* タイトル */
.contact-heading{
  text-align: center;
  margin-bottom: 35px;
}
.contact-heading .section-title {
  display: block;       /* inline-block から block に変更 */
  text-align: center;   /* 文字を中央揃えにする */
  font-size: 50px;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 8px;
  margin: 0 auto;  /* 上下左右の余白を中央に */
  margin-top: 40px;
  color: #4e3a33;
}

.contact-heading p{
  font-size: 18px;
  color: #6f5b55;
}

/* フォーム */

.contact-form{
  display: flex;
  flex-direction: column;

  gap: 18px;
}

/* 横並び */

.form-row{
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

/* グループ */

.form-group{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label{
  font-size: 18px;
  font-weight: bold;
  color: #4b342f;
}

/* input */

.form-group input,
.form-group select,
.form-group textarea{
  width: 100%;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 18px;
  padding:14px 18px;
  font-size: 16px;
  color: #4b342f;
  box-shadow:
  0 4px 10px rgba(0,0,0,0.06);
}

/* textarea */

.form-group textarea{
  min-height: 140px;
  resize: vertical;
}

/* ボタン */

.contact-btn{
  width: 100%;
  max-width: 520px;
  margin:
  20px auto 0;
  border: none;
  background:
  linear-gradient(90deg,#ee9ea8,#e88f9d);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding:16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow:0 10px 20px rgba(232,143,157,0.25);
}

.contact-btn:hover{
  transform: translateY(-3px);

  opacity: 0.9;
}

/* =========================
  Footer
========================= */

.site-footer {
  background: #fdf8f3; /* サイト全体のベース背景色に統一 */
  padding: 60px 20px 30px;
  border-top: 1px solid #eae0d8;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* 屋号 */
.footer-logo {
  margin-bottom: 25px;
}

.footer-logo a {
  font-size: 26px;
  font-weight: bold;
  color: #333333; /* 黒文字 */
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-logo a:hover {
  color: #e6a19d; /* ホバー時に優しめのピンクへ変更 */
}

/* ナビゲーション */
.footer-nav {
  margin-bottom: 25px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #333333; /* 黒文字 */
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ナビゲーションホバー時 */
.footer-nav a:hover {
  color: #e6a19d; /* ホバー時に色を変更 */
}

/* SNS (Instagram) */
.footer-sns {
  margin-bottom: 35px;
}

.footer-sns a {
  font-size: 15px;
  color: #333333; /* 黒文字 */
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-sns a:hover {
  color: #e6a19d;
  opacity: 0.8;
}

/* コピーライト */
.copyright {
  font-size: 13px;
  color: #8c7366;
  letter-spacing: 0.05em;
}

/* ------------------------------------------
  スマートフォン向け（max-width: 768px）
------------------------------------------ */
@media screen and (max-width: 768px) {

  /* --- 全体共通 --- */
  body {
    font-size: 14px; /* スマホ向けにベースの文字サイズを調整 */
  }

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

  .container{
    max-width: 100%;
    padding: 0 20px;
  }

  /* --- header --- */
  header {
    width: 100%;
    background: transparent;   /* 背景の白を透明に */
    position: static;      /* 絶対配置を解除して上部に固定 */
    padding: 10px 10px;
  }

  .top-nav ul {
    gap: 10px;             /* ボタン同士の間隔を狭く */
  }

  .top-nav a {
    padding: 8px 16px;     /* ボタンをスマホサイズに縮小 */
    font-size: 14px;
  }

  .nav {
    max-width: 1100px;
    margin: 0 auto;
  }

  .nav ul {
    display: flex;
    flex-wrap: wrap;       /* ★ nowrap から wrap に変更して折り返せるようにします */
    justify-content: center; /* ★ ボタンを中央揃えにしてバランスを整えます */
    gap: 10px 8px;         /* ★ ボタン同士の隙間（上下 10px / 左右 8px） */
    padding: 0;
  }

  .nav li {
    /* 2行にした時に綺麗に並ぶよう、不要な設定は自動に任せます */
    flex-shrink: 1; 
  }

  .nav a {
    display: inline-block;
    padding: 8px 14px;     /* ★ 2行で収まりやすいよう、ボタンの横幅を少しだけコンパクトに */
    font-size: 14px;
    background: #f3e9e1;
    white-space: nowrap;   /* ボタン内の文字（Worksなど）が途中で改行されるのを防ぎます */
  }

  /* --- hero --- */
  .hero {
    height: auto;          /* 縦幅を100vhから自動調整に変更 */
    min-height: 100vh;     /* 最低でも画面いっぱいの高さは確保 */
    position: relative;
    padding-bottom: 60px;  /* 下部に少し余白を作る */
    display: flex;
    flex-direction: column;
    background-image: url("img/top-background-sp.jpg");
    background-position: center bottom; /* 💡 画像を下揃えにする */
    background-size: cover;
  }

  .hero-text {
    position: static;      /* 右側固定を解除 */
    transform: none;       /* 位置調整のリセット */
    text-align: center;    /* 💡 文字をすべて中央揃えに */
    max-width: 100%;
    background: rgba(253, 248, 243, 0.75); /* 💡 bodyの背景色に近い白ベースを75%の透明度で敷く */
    padding: 30px 20px;                     /* 内側に上下左右の余白を作る */
    border-radius: 20px;                    /* 角丸にして柔らかい印象に */
    margin: 20px 15px 0;
  }

  .sub-title {
    font-size: 15px;       /* スマホで見やすいサイズに */
    margin-bottom: 15px;
  }

  .hero-text h1 {
    font-size: 26px;       /* 画面幅に収まるサイズに縮小 */
    line-height: 1.4;
    margin-bottom: 25px;
  }

  .text {
    font-size: 15px;       /* スマホの標準的な読みやすいサイズ */
    line-height: 1.8;
    margin-bottom: 30px;
  }

  .btn {
    padding: 15px 40px;    /* ボタンを少しコンパクトに */
    font-size: 16px;
    width: 90%;            /* スマホで押し返しやすいよう横幅を広げる */
    max-width: 300px;      /* 大きくなりすぎない上限 */
  }

  /* --- About セクション --- */
  .about-bg {
    height: auto; /* 固定高さを解除 */
    background-image: none; /* スマホでは背景画像を見やすくするために一旦非表示、または薄い背景色に */
    background: #fffaf7;
    padding: 60px 20px;
  }

  /* PCでタイトルがWorksのものを流用しているため調整 */
  .about .section-heading {
    margin-bottom: 40px;
  }

  .about .section-heading h2 {
    font-size: 40px;
  }

  .about-text {
    width: 100%; /* 横幅いっぱいに */
    margin-left: 0; /* PC用の右寄せをリセット */
    position: static;
  }

  .about-item {
    background: #ffffff; /* スマホで読みやすいようにカード風に */
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    margin-bottom: 20px;
  }

  .about-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .about-item p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* --- Works セクション --- */
  .works {
    padding: 60px 20px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .works-list {
    grid-template-columns: 1fr; /* スマホでは2段組から「1本縦並び」に変更 */
    gap: 24px;
  }

  .works-item {
    padding: 12px;
    border-radius: 16px;
  }

  .works-text {
    font-size: 18px;
    margin-top: 12px;
  }

  .works-button {
    margin-top: 40px;
  }

  /* --- Works Detail セクション --- */

  .works-detail-section {
    padding: 20px 4% 60px;
    min-height: auto; /* スマホでは画面高固定を解除 */
  }

  /* タイトルの文字サイズ調整 */
  .works-detail-section .section-title {
    font-size: 32px;
    margin-top: 20px;
    padding: 10px 0;
  }

  /* 画像とテキストを縦並び（フレックス方向を列に変更） */
  .detail-inner {
    flex-direction: column; /* 💡 縦並びにする設定 */
    align-items: center;
    gap: 30px;              /* 画像とテキストの間隔 */
    margin-top: 30px;
  }

  /* 左画像エリア */
  .detail-image {
    width: 100%;
    max-width: 380px;       /* 広がりすぎないように制限 */
  }

  .detail-image img {
    width: 100%;
    height: auto;
  }

  /* 右テキストエリア */
  .detail-text {
    width: 100%;
    max-width: 100%;
    margin-left: 0;         /* PC用の左余白をリセット */
    margin-top: 0;          /* PC用の上余白をリセット */
    text-align: left;       /* 左寄せで読みやすく */
  }

  /* 各見出しとテキストの文字サイズ調整 */
  .detail-text h3 {
    font-size: 22px;
    margin-bottom: 24px;
    line-height: 1.4;
  }

  .detail-item {
    margin-bottom: 20px;
  }

  .detail-item h4 {
    font-size: 16px;
    color: #4e3a33;
    margin-bottom: 4px;
  }

  .detail-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #6f625d;
  }

  /* --- Works一覧ページ --- */
  .works-page-section {
    padding-top: 10px; /* 前回の「上すぎる余白」対策を引き継ぎ */
  }
  
  .works-tabs {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
  }
  
  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* ★スマホでもあえて2列にしてスッキリ見せる（Bパターンの良さを活かす） */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
  }

  .card-body {
    padding: 12px 8px;
  }

  .card-body h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .card-body p {
    font-size: 11px;
  }
  
  .works-cta {
    padding: 30px 15px;
  }
  
  .works-cta p {
    font-size: 14px;
  }

  /* --- News セクション --- */
  .news {
    padding: 60px 20px;
  }

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

  .news-heading h2 {
    font-size: 40px;
  }

  .news-list {
    padding: 10px 20px;
  }

  .news-item {
    flex-direction: column; /* 日付と本文を縦並びに */
    align-items: flex-start; /* 左寄せ */
    gap: 8px;
    padding: 20px 0;
  }

  .news-date {
    min-width: auto;
    font-size: 16px;
  }

  .news-text {
    font-size: 16px;
    line-height: 1.5;
  }

  /* --- skill セクション --- */
  .skill-section {
    padding: 60px 4% 60px;
  }

  .skill-section .section-title,
  .contact-heading .section-title {
    font-size: 32px;
    padding: 10px 30px;
    margin: 0;  /* 上下左右の余白を中央に */
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 35px 20px;
  }

  /* --- Service セクション --- */
  .service-section {
    padding-top: 10px ;
    min-height: auto; /* スマホでは高さを自動調整 */
  }

  .service-section .section-title{
    font-size: 32px;
  }
  /* 3列から1列（縦並び）に変更 */
  .service-grid {
    grid-template-columns: 1fr; /* 1列に縦並び */
    gap: 30px; /* カード同士の縦の隙間 */
    justify-items: center; /* カードを中央に配置 */
  }

  /* カード幅の調整 */
  .service-card {
    width: 100%; /* 横幅いっぱいに広げる */
    max-width: 400px; /* 広がりすぎないように最大幅を指定 */
    box-sizing: border-box; /* paddingを含めた幅計算にする */
  }

  /* カード内の文字サイズ微調整 */
  .service-card h3 {
    font-size: 24px;
  }

  .service-card p {
    font-size: 16px;
  }

  /* --- Contact セクション --- */
  .contact-section {
    padding: 60px 4% 60px;
  }

  .contact-inner {
    padding: 0 20px; 
  }

  .form-row{
    flex-direction: column;
    padding-bottom: 24px;
  }

  .contact-btn{
    font-size: 20px;
  }

  /* --- footer セクション --- */
  .site-footer {
    padding: 40px 20px 20px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    gap: 15px 20px;
  }

  .footer-nav a {
    font-size: 14px;
  }
}
