/*共通設定*/

@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  background-color: #d9d9d9;
  color: #000000;
  font-family: 'Zen Kaku GoGothic New', sans-serif;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover{
  opacity: 0.7;
}

.section-title {
  font-size: 28px;
  color: #868686;
  text-align: center;
}

.section-link a {
  color: #794c4c;
  font-weight: bold;
}
.section-link {
  margin-top: 40px;
  text-align: center;
}

.margin1 {
  margin-top: 20px;
}

/*ヘッダー*/
main {
  padding-top: 100px;
}

#header {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: #F3EBEB;
}

#header .logo {
  width: 100%;
  max-width: 60px;
  line-height: 0;
}

#header .logo a {
  display: block;
}

#header .navi .menu {
  display: flex;
  align-items: center;
  font-size: 14px;
}

#header .navi .menu > li {
  margin-left: 40px;
}

#header .navi .menu .menu-first {
  position: relative;
}

#header .navi .menu .menu-first span {
  cursor: pointer;
}

#header .navi .menu .menu-first span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 1px #1f1f1f;
  border-right: solid 1px #1f1f1f;
  margin: 0 auto;
  transform: rotate(135deg);
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
}

/*ドロップダウンの設定*/
#header .navi .menu .menu-first .menu-second {
  width: 140px;
  background-color: #f3ebeb;
  padding: 10px 20px;
  position: absolute;
  top: 50px;
  left: 0;
  display: none;
}

#header .navi .menu .menu-first .menu-second li {
  margin-bottom: 10px;
}

.menu .menu-contact a {
  color: #B99797;
  font-weight: bold;
}

#header .mask {
  display: none;
}

/*MainVisual*/

.sp {
  display: none;
}

.main-visual {
  position: relative;
}

.main-visual .text {
  font-family: 'YuMincho', 'Yu Mincho', serif;
  width: 450px;
  background-color: #B99797;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 30px;
}

.main-visual .text .catchcopy  {
  font-size: 36px;
  font-weight: bold;
}

.main-visual .text .subcopy {
  font-size: 24px;
}

.main-visual img {
  width: 100vw;
  object-fit: cover;
}

/*ABOUT*/
#about {
  margin: 70px 20px 0 20px;
  text-align: center;
}

.subtitle {
  margin: 40px auto;
  font-size: 20px;
  font-weight: bold;
}


/*SERVICE*/
#service {
  margin: 70px 20px 0 20px;
}

#service .service-box {
  display: flex;
  justify-content: center;
}

#service p {
  text-align: center;
}

/*PORTFOLIO*/
#portfolio {
  margin-top: 70px ;
}

#portfolio .port-gp {
  background: linear-gradient(180deg,#d9d9d9 0%,#d9d9d9 20%,#8E8282 100%);
}

.portfolio-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 30px 20px 0 20px;
  scroll-snap-type: x mandatory;
}

.portfolio-card {
  min-width: 220px;
  scroll-snap-align: start;
  text-decoration: none;
  color: #333;
}

.portfolio-card .thumb img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 6px;
}

.port-gp .work-text {
  display: flex;
  justify-content: center;
  padding: 8px 2px;
}

.work-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.work-text .title {
  margin: 0;
  font-size: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.work-cat {
  padding-left: 8px;
  border-left: 2px solid #ccc; /* ← これが縦ライン */
  white-space: nowrap;
  flex-shrink: 0;
}



/*FOOTER*/
#footer {
  padding: 40px 20px 20px 20px;
  border-top: solid 1px #794c4c;
}

#footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

#footer .logo {
  max-width: 80px;
}

#footer .menu {
  display: flex;
  align-items: center;
}

#footer .menu li {
  font-size: 14px;
  margin-left: 40px;
  position: relative;
}

#footer .copyright {
  font-size: 12px;
  text-align: center;
}

/*profile*/
#profile {
  margin: 70px 20px 0 20px;
}

.profile-sec {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.profile-sec .pro-img {
  width: 40%;
  max-width: 200px;
}

.profile-text {
  padding-left: 40px;
  width: 60%;
}
.profile-text .name {
  font-size: 24px;
  font-weight: bold;
}

.profile-text .name span {
  font-size: 18px;
  padding: 20px;
}

.profile-box {
  margin-top: 40px;
}

.profile-box .title1 {
  border-bottom: solid 1px #B99797;
  font-weight: bold;
}

.prof-list {
  display: flex;
}

.prof-list2 {
  display: flex;
}

.prof-list .title2 {
  padding-right: 30px;
  padding-bottom: 20px;
  padding-left: 20px;
}


.prof-list .title2::before {
  content: "■";
  color: #794c4c;
}


.prof-list ul li {
  padding-left: 20px;
}

.port-gp .section-link a {
  color: #ccc;
  font-weight: normal;
}

.port-gp .section-link {
  text-align: right;
  padding-right: 40px;
  padding-bottom: 20px;
  margin-top: 20px;
} 

/*contact*/
#contact {
  margin: 70px 20px 70px 20px;
}

.contact-sec {
  width: 80%;
  max-width: 800px;
  margin: 40px auto;
}

.wpcf7-form.init,
.wpcf7-form.sent {
  background-color: #b997975e;
  padding: 40px;
}

.req {
  font-size: 14px;
  color: red;
  font-weight: normal;
}


/* お問い合わせフォームの基本スタイル */
.wpcf7-form p {
    margin-bottom: 20px; /* 項目ごとの余白 */
    font-weight: bold;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 入力欄（テキスト、メール、セレクトボックス、テキストエリア）の幅を揃える */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 枠線を含めて100%にする */
    background-color: #d9d9d9;
    font-weight: normal;
}

/* 送信ボタンの見た目 */
.wpcf7-submit {
    padding: 12px 40px;
    background-color: #794c4c; /* お好みの色に変えてください */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wpcf7-submit:hover {
    opacity: 0.8;
}

.wpcf7-form .form-note {
  font-weight: normal;
}

/*portfolio*/
/* カテゴリーナビ */
.work-nav {
  padding-top: 10px;
}

.work-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
}

.work-nav a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: 0.2s;
}

.work-nav a:hover,
.work-nav .current {
    background: #000;
    color: #fff;
}

/* グリッド */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 10px 20px 40px 20px;
}

/* 各アイテム */
.work-item {
  width: 260px;
    background: #ffffff70;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* サムネイル */

.work-thumb {
  height: 260px;
  padding: 20px;
  box-sizing: border-box;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* テキスト部分 */
.work-text {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ← baseline じゃなくて center の方が1タグなら綺麗 */
    padding: 14px 16px;
    gap: 12px;
}

.work-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1; /* ← タイトルが自然に広がる */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* ← タイトルが長くても崩れない */
}

.work-cat {
    margin: 0;
    font-size: 13px;
    color: #666;
    white-space: nowrap; /* ← タグが折れない */
}

/*portfolio single page*/

.work-detail {
  margin: 70px 20px 0 20px;
}

/* 画像とinfoを横並びにする */
.work-top {
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
}

/*work-info をカード化 */
.work-info {
  padding: 20px;
  box-shadow: 4px 4px 10px #666;

  /* info の中身だけ縦並び */
  display: flex;
  flex-direction: column;
  gap: 20px;

  width: 50%;
}

/* -------------------------
   タイトルに下線
-------------------------- */
.work-info h2 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
  margin: 0;
  font-size: 26px;
}

/* -------------------------
   スペック表（既存構造に合わせて最小限）
-------------------------- */
.work-spec {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 10px;
  column-gap: 20px;
  color: #666;
}

.work-spec dt {
  font-weight: bold;
}

.work-content {
  margin: 40px auto 20px auto;
  white-space: pre-line;
  width: 85%;
}

.work-img {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 90%;
  margin: 0 auto 70px auto;
  flex-wrap: wrap;
}

.work-img img {
  box-shadow: 4px 4px 10px #666;
}

/* 写真（top-visual）はそのまま*/
.top-visual {
  width: 30%;
  max-width: 380px;
}

.top-visual img {
  height: auto;
  display: block;
}

/* Web制作詳細ページ用スタイル */
/* Web制作詳細ページ全体 */
.service-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #333;
}

.fontsize {
 font-size: 20px;
 margin-left: 40px;
}

.intro-text {
  text-align: center;
  margin-bottom: 40px;
}

.intro-text h2 {
  color: #794c4c;
  font-size: 26px;
  margin-bottom: 15px;
}

.price-notice {
  background: #ffffff;
  border: 2px solid #B99797;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
}

/* 料金プラン */
.price-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

.price-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 260px;
  max-width: 300px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  border-top: 5px solid #ccc;
}
.price-card .price { font-size: 32px; font-weight: bold; color: #794c4c; margin: 15px 0; }
.price-card ul { text-align: left; padding: 0; list-style: none; margin-top: 20px; font-size: 14px; }
.price-card ul li::before { content: "✓"; color: #B99797; margin-right: 8px; font-weight: bold; }

/* メリットセクション */
.benefit-section { margin-bottom: 60px; }
.benefit-section h3, .flow-section h3 { 
  text-align: center; color: #794c4c; margin-bottom: 30px; 
  border-bottom: 2px solid #B99797; display: inline-block; width: 100%; padding-bottom: 10px;
}
.benefit-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.benefit-item { flex: 1; min-width: 250px; background: #ffffff; padding: 20px; border-radius: 8px; }
.benefit-item h4 { color: #794c4c; margin-bottom: 10px; font-size: 18px; }

/* 制作の流れ */
.flow-section { margin-bottom: 60px; }
.flow-list { position: relative; max-width: 600px; margin: 0 auto; }
.flow-item { display: flex; gap: 20px; margin-bottom: 30px; position: relative; }
.flow-item:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 40px;
  width: 2px; height: calc(100% - 10px); background: #B99797;
}
.flow-item .num {
  background: #794c4c; color: #fff; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: bold; z-index: 1;
}
.flow-content h4 { margin-bottom: 5px; font-size: 18px; }

/* ボタン */
.section-link { text-align: center; margin-top: 40px; }
.section-link p { margin-bottom: 15px; font-weight: bold; }
.service-page .service-detail .section-link a.btn {
  display: inline-block; background: #794c4c; color: #fff !important;
  padding: 18px 50px; border-radius: 5px; text-decoration: none;
  font-weight: bold; transition: 0.3s;
}
.service-page .service-detail .section-link a.btn:hover { opacity: 0.8; transform: translateY(-2px); }

/*-------------------
タブレット
---------------------*/
@media screen and (max-width: 1024px) {
  main {
    padding-top: 60px;
  }

  #header {
    height: 80px;
  }

  #header .logo {
    max-width:45px;
  }

  /*profile*/
  .prof-list2 {
    display: block;
  }


}



/*-------------------
スマフォ
---------------------*/
@media screen and (max-width: 767px) {
  /*ヘッダー*/
  #header .logo {
   max-width: 40px;
  }


  /*ハンバーガーメニュー　中*/
  #header .navi {
    width: 80%;
    height: 100vh;
    background-color: #d9d9d9;
    position: fixed;
    top: 0;
    left: -120%;
    z-index: 20;
    transition: all 0.6s;
  }

  #header .navi.active {
    left: 0;
  }

  #header .navi .menu {
    width: 100%;
    height: 100vh;
    flex-direction: column;
    padding: 60px 0;
    overflow: auto;
  }
  
  #header .navi .menu > li {
    width: 100%;
    border-top: solid 1px #1f1f1f;
    margin-left: 0;
  }
  
  #header .navi .menu > li a {
    width: 100%;
    display: block;
    padding: 20px;
  }

  #header .navi .menu .menu-first span {
    display: block;
    padding: 20px;
  }
  
  #header .navi .menu .menu-first span::before {
    content: "";
    width: 15px;
    height: 1px;
    background-color: #1f1f1f;
    position: absolute;
    top: 30px;
    right: 20px;
  }
  
  #header .navi .menu .menu-first span::after {
    width: 1px;
    height: 15px;
    background-color: #1f1f1f;
    border: none;
    transform: none;
    position: absolute;
    top: 23px;
    right: 26px;
    left: auto;
  }

  #header .navi .menu .menu-first span.active::after {
    content: none;
  }

  #header .navi .menu .menu-first .menu-second {
    width: 100%;
    position: static;
    padding: 0 0 0 40px;
  }
  
  #header .navi .menu .menu-first .menu-second li {
    border-top: solid 1px #eee;
    margin-bottom: 0;
  }

  #header .navi .menu .menu-contact {
    padding: 30px 0;
  }

  #header .navi .menu .menu-contact a {
    max-width: 160px;
    margin: 0 auto;
  }

  /*ハンバーガーメニュー　ボタン*/

  #header .hamburger {
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: fixed;
    right: 10px;
    z-index: 30;
  }

  #header .hamburger span {
    width: 30px;
    height: 1px;
    background-color: #1f1f1f;
    display: inline-block;
    position: absolute;
    left: 10px;
    transition: all 0.4s;
  }

  #header .hamburger.active span {
    background-color: #ffffff;
  }

  #header .hamburger span:nth-of-type(1) {
    top: 16px;
  }
  
  #header .hamburger span:nth-of-type(2) {
    top: 25px;
  }
  
  #header .hamburger span:nth-of-type(3) {
    top: 34px;
  }

  #header .hamburger.active span:nth-of-type(1) {
    top: 24px;
    transform: rotate(-45deg);
  }
  
  #header .hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }
  
  #header .hamburger.active span:nth-of-type(3) {
    top: 24px;
    transform: rotate(45deg);
  }

  /*マスクの設定*/
  #header .mask.active {
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: block;
    opacity: 0.8;
    position: fixed;
    top: 0;
    left: 0;
  }
  

  /*MainVisual*/
  .sp {
    display: inline;
  }

  .main-visual > img {
    height: 300px;
    width: 100%;
  }

  .main-visual .text {
    width: 250px;
    padding: 20px 15px;
    line-height: 15px;
  }
  
  .main-visual .text .catchcopy  {
    font-size: 24px;
  }
  
  .main-visual .text .subcopy {
    font-size: 18px;
    line-height: 1.2;
  }


  /*ABOUT*/
  
  .about {
    justify-items: center;
    margin: 40px 0 0 0;
  }

  .subtitle {
    margin: 30px auto;
  }

  .about-text {
    margin: 0 10px;
    font-size: 14px;
  }

  /*Sevice*/
  #service .service-box img {
    width: 250px;
  }

  #service .service-box {
    display: inline-block;
    text-align: center;
  }
 
  /*Footer*/
  #footer .inner {
    flex-direction: column;
    margin-bottom: 20px;
  }

  #footer .logo {
    margin-bottom: 20px;
  }

  #footer .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  #footer .menu li {
    margin-left: 15px;
  }

  /*profile*/
  .profile-sec {
    flex-direction: column;
    align-items: center;
  }

  .profile-text {
    width: 100%;
    padding-left: 0;
  }

  .profile-text .name {
    font-size: 20px;
    padding-left: 0;
    padding-top: 20px;
    text-align: center;
  }
  
  .profile-text .from {
    text-align: center;
  }

  .profile-text .name span {
    font-size: 16px;
  }
  
  .profile-text {
    font-size: 14px;
  }
  
  .profile-box {
    margin-top: 20px;
  }
  
  .profile-box .title1 {
    text-align: center;
  }

  .prof-list {
    display: block;
  }
  
  .prof-list .title2 ul {
    display: flex;
    flex-wrap: wrap;
  }

 
  .prof-list2 .title2 {
    padding-left: 20px;
  }
  
  .work-top {
    flex-direction: column;
    align-items: center;
  }

  .work-info {
    width: 85%;
  }

  .top-visual {
    width: 80%;
  }

  .work-content {
    margin-top: 0;
  }

  .work-detail .work-img {
    display: flex;
    flex-wrap: wrap;    
    align-items: center;
    width: 90%;
  }

  .work-detail .work-img img {
    width: max-content;
    max-width: 100%;

  }

}