/* ===============================
   Header（.p-header）
================================= */
.p-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .p-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.5rem, 2vw, 1.5rem);
    max-width: 1400px;
    min-width: 95%;
    margin: 0 auto;
  }
  
  .p-header__logo {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    color: #111;
  }
  
  .p-header__toggle {
    z-index: 110;
  }
  
  /* ========================================
   0. Reset / 基本初期化
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* ユーザーの環境に応じて柔軟に対応 */
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #222;
  background-color: #fff;
  line-height: 1.7;
  font-size: clamp(14px, 2.5vw, 18px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 480px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========================================
   1. リンク・リスト系の初期化
======================================== */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul,
ol {
  list-style: none;
}

/* ========================================
   2. 画像・メディアの調整
======================================== */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ========================================
   3. カスタムプロパティ（変数）
   ※必要に応じて拡張していきます
======================================== */
:root {
  --main-color: #111;
  --accent-color: #facc15; /* 黄色系アクセント（#FACC15） */
  --bg-gray: #f4f4f4;
  --transition-base: 0.3s ease;
}

  
  
  /* ドロワーメニュー */
  .p-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 60%);
    height: 100%;
    background: #f4f4f4;
    transition: right 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .p-header__nav.is-open {
    right: 0;
  }
  
  .p-header__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  
  .p-header__menu li {
    margin-bottom: clamp(1rem, 3vh, 2rem);
  }
  
  .p-header__menu a {
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #333;
  }


  Section {
    margin-bottom: 120px;
  }

  @media (max-width: 480px) {

    Section {
      margin-bottom: 20px;
    }
    }


  /* ===============================
   Hero Section
================================= */
.p-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1rem, 5vw, 2rem);
  }
  
  .p-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
  }
  
  .p-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1); /* 明るめ補正 */
  }
  
  .p-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
  }
  
  .p-hero__catch {
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  }

  .p-hero__text {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  }
  
  .p-hero__buttons {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
  }
  
  .c-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    transition: background-color var(--transition-base);
  }
  
  /* ブランドカラー */
  .c-btn--google { background-color: #6248FF;}
  .c-btn--facebook { background-color: #3B5998;}
  .c-btn--instagram {background-color: #E1306C;}

 
/* ===============================
   About Gallery Section
================================= */

.p-about-swiper {
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    background-color: #fff;
  }
  
  .p-about-swiper__inner {
    display: flex;
    flex-wrap: nowrap;
    /* justify-content: space-between; */
    align-items: center;
    max-width: 1400px;
    min-width: 100%;
    width: 100%;
    height: 540px;
    margin: 0 auto;
    gap: 2rem;
  }
  
  .p-about-swiper__text {
    width: 40%;
    padding-left: 80px;
  }
  
  .p-about-swiper__title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .p-about-swiper__desc {
    font-size:  clamp(0.8rem, 1vw, 1rem);
    line-height: 1.8;
    color: #333;
  }
  
  .p-about-swiper__gallery {
    position: relative;
    /* max-width: 500px;     ✅ はみ出し防止のために最大幅を設定 */
    flex: 1 1 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .p-about-swiper__img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0.75rem;
    background-color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  
  /* Swiper Navigation Buttons */
  .swiper-button-prev,
  .swiper-button-next {
    color: #000;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 10px;
    border: 1px solid #00000030;
    background-color: #00000030;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background-color: #000;
    color: #fff;
  }
  
  .swiper-pagination {
    text-align: center;
    margin-top: 1rem;
  }

  .swiper-button-prev:after , .swiper-button-next:after {
    font-size: 1rem;
  }
  
  @media (max-width: 768px) {
    .p-about-swiper__inner {
      flex-direction: column;
    }
  
    .p-about-swiper__text,
    .p-about-swiper__gallery {
      flex: 1 1 100%;
    }

    .p-about-swiper__text {
        width: 100%;
        padding-left: 0;
      }
  }


  /* ===============================
   Works Swiper Section CSS
================================= */

.p-works {
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    background-color: #f9f9f9;
  }
  
  .p-works__inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .p-works__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 4rem;
  }
  
  .p-works__swiper {
    position: relative;
    height: 640px;
  }
  
  .p-works__card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .p-works__img {
    width: 100%;
    height: 450px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  
  .p-works__info {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }
  
  .p-works__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .p-works__time {
    font-size: 0.9rem;
    color: #666;
  }
  
  /* Swiper UI */
  .swiper-button-prev,
  .swiper-button-next {
    color: #000;
    background: hsla(0, 0%, 40%, 0.7);
    width: 88px;
    height: 120px;
    border-radius: 10%;
    border: 1px solid hsla(0, 0%, 51%, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    top: 30%;
  }
  
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background: #000;
    color: #fff;
  }
  
  .swiper-pagination {
    margin-top: 1rem;
    text-align: center;
  }

  .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
    bottom: 16px;
  }

  .button-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 50px;

    a {
        text-decoration: none;
        color: #000;
        font-size: 1.2rem;
        font-weight: bold;
        width: 180px;
        height: 60px;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        background-color: #f4f4f4;
        transition: background-color var(--transition-base);
    }
  } 

  .button-holder a:nth-child(2) {
    background-color: #facc15;
  }

  .p-works {
   padding-bottom: 200px;
    background-color: #f9f9f9;
  }
  
  @media (max-width: 768px) {
    .p-works__card {
      margin-bottom: 2rem;
    }

    .p-works__name {
        font-size: 0.9rem;
        margin-bottom: 0;
      }

      .button-holder {
        gap: 20px;
    
        a {
            font-size: 0.8rem;
            width: 140px;
            height: 54px;
            padding: 0.5rem 1rem;
        }
      } 
  }

  @media (max-width: 480px) {
    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }

    .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction{
      bottom: 15px;
    }

    .swiper-button-prev, .swiper-button-next {
      display: none;
    }

    .p-works__swiper {
      height: 480px;
    }

    .p-works__img {
      height: 320px;
    }

    .p-works__name  {
      font-size: 0.7rem;
    }

    .p-works {
      padding-bottom: 20px;
     }

  }

  @media (max-width: 378px) {

    


    .p-works__info {
        padding: 2rem 0;
    }


    .p-works__name {
        font-size: 0.7rem;
      }



  }


 /* ===============================
   space　Section CSS
================================= */

.p-space {
    background-color: #f5f5f5;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    text-align: center;
  }
  
  .p-space__inner {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .p-space__title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .p-space__desc {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  
  .p-space__btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }


 /* ===============================
   Service Section CSS（修正済）
================================= */

.p-service {
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    background-color: #ffffff;
  }
  
  .p-service__inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .p-service__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
  }
  
  .p-service__swiper {
    position: relative;
    height: auto; /* ✅ 高さ制御を安定化 */
  }
  
  .p-service__card {
    background: #f9f9f9;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: auto; /* ✅ 自動高さ対応 */
    min-height: 340px; /* ✅ 最低高さを保証 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
  }
  
  .p-service__icon {
    font-size: 2rem;
    color: #6248FF;
  }
  
  .p-service__name {
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .p-service__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
  }
  
  /* Swiper専用 pagination を分離 */
  .p-service__pagination {
    margin-top: 1rem;
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .p-service__card {
      margin-bottom: 1rem;
    }
  }
  

  /* ===============================
   Contact Section CSS
================================= */

.p-contact {
    background-color: #f5f5f5;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    text-align: center;
  }
  
  .p-contact__inner {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .p-contact__title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .p-contact__desc {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  
  .p-contact__btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .p-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
  }
  
  .p-contact__btn i {
    font-size: 1.2rem;
  }
  
  .p-contact__btn.is-form {
    background-color: #6248FF;
  }
  
  .p-contact__btn.is-instagram {
    background-color: #E1306C;
  }
  
  .p-contact__btn.is-facebook {
    background-color: #3B5998;
  }
  
  .p-contact__btn:hover {
    opacity: 0.85;
  }
  
  @media (min-width: 768px) {
    .p-contact__btns {
      flex-direction: row;
      justify-content: center;
    }
  }


  .p-sns__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #000000; /* Notionブランドカラー */    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
    font-size: 1.2rem;
  }
  
  .p-sns__link:hover {
    opacity: 0.8;
  }

  /* <!-- ===============================
   Footer Section CSS
================================= --> */
.p-footer {
  background-color: #121212;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.p-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.p-footer__copy {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.p-footer__sns {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.p-footer__link {
  font-size: 1.2rem;
  color: #fff;
  transition: color 0.3s;
}

.p-footer__link:hover {
  color: #6248FF;
}

.p-blog {
    background-color: #fff;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    text-align: center;
  }
  
  .p-blog__inner {
    max-width: 1400px;
    min-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  
  .p-blog__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
  }
  
  .p-blog__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .p-blog__card {
    background: #f9f9f9;
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: left;
  }
  
  .p-blog__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  
  .p-blog__content {
    padding: 1.25rem;
  }
  
  .p-blog__heading {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .p-blog__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
  }
  
  @media (max-width: 480px) {
    .p-blog__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column;
      }
  }
