/* --------------------------
   全体設定（PC版のみ）
---------------------------*/
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: #eaf5fb;
    color: #4a4a4a;
    line-height: 1.9;
    padding-top: 70px; /* ヘッダー高さ分 */
}

section {
    scroll-margin-top: 90px;
}

p {
    line-height: 2.8;        /* 行間を少し広く */
    letter-spacing: 1.5px;   /* 文字間をわずかに広げる */
}

li {
    line-height: 2.8;        /* 行間を少し広く */
    letter-spacing: 1.5px;   /* 文字間をわずかに広げる */
}

* {
  box-sizing: border-box;
}

/* --------------------------
   見出し浮き上がり
---------------------------*/
h2 {
  color: #2d4b57;
  font-size: 28px;
  margin: 0 auto 50px;
  letter-spacing: 2px;
  border-bottom: 2px solid #9ecde2;
  padding-bottom: 6px;
  width: fit-content;
  text-align: center;

  opacity: 0; /* 初期は透明 */
  transform: translateY(20px);
  transition: all 0.8s ease;
}

h2.show {
  opacity: 1; /* 表示 */
  transform: translateY(0);
}


/* --------------------------
   表示の固定
---------------------------*/

body, html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 横スクロール防止 */
}

.section, .works-wrapper {
    width: 100%;
    max-width: 1200px; /* 必要に応じて最大幅を設定 */
    margin: 0 auto;     /* 中央寄せ */
    padding: 40px 6%;   /* 横幅は % で指定すると画面幅に対応 */
    box-sizing: border-box; /* paddingを幅に含める */
}

.work-card, .work-card img {
    width: 100%;   /* 親要素幅に合わせる */
    height: auto;  /* 高さ自動調整 */
    max-width: 100%;
    box-sizing: border-box;
}


/* --------------------------
   見出し
---------------------------*/
h2 {
    color: #2d4b57;
    font-size: 28px;
    margin: 0 auto 50px;
    letter-spacing: 2px;
    border-bottom: 2px solid #9ecde2;
    padding-bottom: 6px;
    width: fit-content;
    text-align: center;
}

/* --------------------------
   ヘッダー
---------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 2px solid #9ecde2;
    box-sizing: border-box;
    z-index: 9999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1028px;
    margin: 0 auto;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* --------------------------
   ナビリンク（PC版）
---------------------------*/
.menu-toggle {
    display: none; /* PCでは非表示 */
}

/* PC版ナビ */
.site-nav {
    display: flex;
    flex-direction: row; /* 横並び */
    position: static;    /* 固定ではなく通常フロー */
    height: auto;
    width: auto;
    padding: 0;
    background: none;
    transform: none;
}

/* PC版 ハンバーガーメニュー*/
.menu-toggle {
  display: none; /* PCでは非表示 */
}

.site-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  position: static;
  height: auto;
  width: auto;
  background: none;
  padding: 0;
  transform: none;
}


.site-nav a {
    text-decoration: none;
    color: #2d4b57;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.site-nav a:hover {
    background: rgba(158, 205, 226, 0.2);
}

/* --------------------------
   HERO
---------------------------*/

.hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
}

.hero-img {
  width: 100%;
  height: auto; /* 画像比率を保つ */
  max-height: 500px; /* 必要に応じて調整 */
  object-fit: cover; /* 縦横比を保ちながら切り取り */
}


.hero-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* --------------------------
   セクション共通（ガラス風）
---------------------------*/
.section {
    padding: 40px 6%;
    margin-bottom: 90px;
}

/* 最初のセクションだけ上に余白を追加 */
.section:first-of-type {
    margin-top: 90px; /* heroと自己紹介の間の余白 */
}

.section > div,
.section > ul,
.section > p {
    background: rgba(255, 255, 255, 0.5);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2d4b57;
}

/* --------------------------
   アイコンと文章横並び（自己紹介）
---------------------------*/
.profile-item {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 16px;               /* アイコンと文章の間隔 */
    margin-bottom: 20px;
}

.profile-icon img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    flex: 1;                 /* 残りスペースを文章が占める */
}

.profile-text p {
    margin: 0;
}

/* --------------------------
   実績カード
---------------------------*/
.works-wrapper {
    background: rgba(255, 255, 255, 0.5);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}


.work-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #2d4b57;
}

.work-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.work-title {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* --------------------------
   お問い合わせ・ボタン
---------------------------*/
.contact p {
    text-align: center;  /* pタグ内のテキスト・リンクを中央揃え */
    margin: 0;           /* 余白をリセットしたい場合 */
}

.contact-btn {
    display: inline-block;       /* ボタンっぽくする */
    margin-top: 20px;
    padding: 14px 50px;          /* 高さと横幅 */
    border-radius: 40px;         /* 丸み */
    background-color: #ff8c42;   /* オレンジ */
    color: white;                /* 文字色は白 */
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;       /* 下線なし */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #e5772f;   /* ホバー時少し濃いめ */
    transform: translateY(-2px);
}

/* --------------------------
   お問い合わせ追従
---------------------------*/
.floating-contact {
    position: fixed;      /* 画面に固定 */
    right: 16px;          /* 右端からの距離 */
    bottom: 24px;         /* 下端からの距離 */
    width: 80px;          /* 丸サイズ */
    height: 80px;
    border-radius: 50%;   /* 丸にする */
    background: #ff8c42;  /* オレンジ */
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 9999;        /* 前面に表示 */
}

.floating-contact:hover {
    transform: translateY(-4px);
    opacity: 1;
}


/* --------------------------
   フッター
---------------------------*/
footer {
    width: 100%;
    background: #eaf5fb;
    padding: 5px 0;
    text-align: center;
}


/* --------------------------
   スマホ対応
---------------------------*/

/* ハンバーガー＆スマホメニュー */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    cursor: pointer;
    position: relative;
  }
  .menu-toggle span {
    display: block;
    width: 40px;
    height: 4px;
    background: #2d4b57;
    border-radius: 2px;
    position: absolute;
    transition: all .4s;
  }
  .menu-toggle span:nth-of-type(1) {
    top: 0;
  }
  .menu-toggle span:nth-of-type(2) {
    top: 15px;
  }
  .menu-toggle span:nth-of-type(3) {
    top: 30px;
  }
  .menu-toggle.open span:nth-of-type(1) {
    transform: translateY(15px) rotate(-45deg);
  }
  .menu-toggle.open span:nth-of-type(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-of-type(3) {
    transform: translateY(-15px) rotate(45deg);
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70vw;
    height: 100vh;
    background: rgba(255,255,255,0.95);
    padding: 80px 20px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .site-nav.open {
    transform: translateX(0);
  }

  /* PCメニューは非表示 */
  .site-nav a {
    font-size: 18px;
  }



.hero {
        min-height: 200px; /* 今は600pxのままなのでスマホ用に高さ調整 */
        padding-bottom: 0px; /* 下の余白も少し増やす */
    }

    .hero-img {
        height: 100%; /* 画像をセクション全体に広げる */
        object-fit: cover; /* 縦横比を維持しつつ切り取り */
    }


  @media (max-width: 991px) {
  /* 背景色・ヒーロー画像はそのまま広げる */
  body, .hero {
      width: 100%;
      max-width: 100%;
      padding-left: 0;
      padding-right: 0;
  }


  /* セクション内コンテンツを横幅いっぱいに */

  /* タイムライン全体 */
  .timeline {
      width: 100%;
      max-width: 100%;
      padding-left: 12px;  /* 左右に少し余白 */
      padding-right: 12px;
      box-sizing: border-box;
  }

  /* タイムラインの各項目 */
  .timeline li {
      padding-left: 12px; /* 左のはみ出しを防ぐ */
      box-sizing: border-box;
  }

  /* プロフィールのテキスト部分 */
  .profile-item .profile-text {
      width: 100%;
      box-sizing: border-box;
      padding-left: 12px;  /* アイコンとの間隔はgapで保持 */
      padding-right: 12px;
  }

  /* セクション内ガラス風背景もフル幅 */
  .section > div,
  .section > ul,
  .section > p,
  .works-wrapper,
  .price-box {
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding-left: 12px;
      padding-right: 12px;
      box-sizing: border-box;
  }

   /* リスト全体をフル幅にしてはみ出しを防ぐ */
  ul, ol {
      padding-left: 20px; /* 黒丸と文章の間隔 */
      margin-left: 0;     /* 親からはみ出さない */
      box-sizing: border-box;
      list-style-position: inside; /* 黒丸をテキスト内に表示 */
  }

  /* 必要に応じてリストアイテムも調整 */
  ul li, ol li {
      word-break: break-word; /* 長い文章がはみ出ないように */
  }
}

@media (max-width: 767px) {
  .section:first-of-type {
    margin-top: 50px;
  }
  .section {
    margin-bottom: 40px;
  }
  h2 {
    font-size: 26px;
    margin-bottom: 30px;
    padding-bottom: 0px;
  }
}


