/*
Theme Name: My Theme
Author: MITSUYO NAKATA
Description: シンプルな企業サイト用テーマ
Version: 1.0
*/

html {
  min-height: 100%;
}



 body {
	 
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.6;

 }


.site-container {
  flex: 1;
margin-bottom:100px;

}





 img {
    width: 100%;
    height: auto;
    display: block;
 }

 a {
     color: inherit;
     text-decoration: none;
 }

/* =========================
   Layout
========================= */
.wrap {
    width: min(1240px, calc(100% - 40px));
    margin: 20px auto;


}

/* =========================
   Header
========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    width: clamp(280px, 30vw, 420px);
}

/* HTMLに合わせて .nav 自体を横並びにする */
.menu {
    display: flex;
    gap: 28px;
    font-size: 18px;
    font-weight: 700;
}

.nav a {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    /* 下線の余白 */
}

/* 下線（初期は隠す） */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;
    background: #2F2A8B;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* ホバーで左→右に伸びる */
.nav a:hover::after {
    transform: scaleX(1);
}



.search-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 250px; /* 任意の幅に調整してください */
    overflow: hidden;
    border-radius: 3px;
    background-color: #f2f2f2;
}

.search-form input {
    height: 45px;
    padding: 5px 15px;
    border: none;
    box-sizing: border-box;
    background-color: #f2f2f2;
    font-size: 1em;
    outline: none;
}

.search-form input::placeholder {
    color: #777777;
}

.search-form button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 45px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.search-form button::after {
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%20%3Cpath%20d%3D%22M23.7%2020.8%2019%2016.1c-.2-.2-.5-.3-.8-.3h-.8c1.3-1.7%202-3.7%202-6C19.5%204.4%2015.1%200%209.7%200S0%204.4%200%209.7s4.4%209.7%209.7%209.7c2.3%200%204.3-.8%206-2v.8c0%20.3.1.6.3.8l4.7%204.7c.4.4%201.2.4%201.6%200l1.3-1.3c.5-.5.5-1.2.1-1.6zm-14-5.1c-3.3%200-6-2.7-6-6s2.7-6%206-6%206%202.7%206%206-2.6%206-6%206z%22%20fill%3D%22%23777777%22%3E%3C%2Fpath%3E%20%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    content: '';
}





/* =========================
   Hero
========================= */

.hero {
    position: relative;

}

.hero img {
    height: 400px;
    object-fit: cover;
}

.hero__catch {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
}


/* テキスト */
.hero__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(2rem, 8vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.2;

    /* アニメ初期状態 */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero__wp {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.5em;
    display: block;
}




/* 表示時 */
.hero.is-show .hero__text {
    opacity: 1;
    transform: translateY(0);
}


.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
/* =========================
   Message
========================= */
.top-message {
    padding: 20px 28px 42px;
    text-align: center;
}

.top-message .title {
    font-size: 1.5rem;
    font-weight: 900;
}

.top-message p {
    font-size: 1.2rem;
}

/* =========================
   NEWS
========================= */
.news-section {
    padding: 40px 0 50px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.news-heading {
    width: 200px;
}

.news-heading__title {
    margin: 0;
    color: #2f2a8b;
    font-size: 3rem;
    line-height: 1;
    font-weight: 500;
}

.news-heading__sub {
    margin-top: 10px;
    color: #2f2a8b;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-list {
    flex: 1;
}

.news-item {
    display: grid;
    grid-template-columns: 140px 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #ccc;
}

.news-item:first-child {
    padding-top: 0;
}

.news-date {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.4;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    background: #ddd;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.news-text {
    font-size: 1.3rem;
    line-height: 1.6;
}


/* =========================
   Cards
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 28px 42px;
}

/* =========================
   CARD（リンク版）
========================= */
.card--link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card--link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
transition: transform 0.3s;
}

/* テキスト中央 */
.card__title {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;

    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;

    z-index: 2;
}

/* うっすら暗くする（可読性UP） */
.card--link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background 0.3s;
}

/* ホバー時 */
.card--link:hover img {
transform: scale(1.05);
}

.card--link:hover::before {
    background: rgba(0, 0, 0, 0.4);
}



/* =========================
   top-works-------
========================= */
.top-works {
  padding: 80px 0;
}
.works-heading__title {
    margin: 0;
    color: #2f2a8b;
    font-size: 3rem;
    line-height:0.2;
    font-weight: 500;
}

.works-heading__sub {
    margin-top: 0;
    color: #2f2a8b;
    font-size: 1.4rem;
    font-weight: 700;
}

h3.works-card__title{
font-size:0.9rem;
color:#999;
margin-top:1rem;
font-weight:800;
}

.top-works__list {
	text-align: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
	padding:0 20px;
}

.top-works__btn {
  margin-top: 32px;
}

.top-works__btn a {
  padding: 12px 24px;
  background: #222;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}



/* =========================
   swiper-------
========================= */

.works-swiper .swiper-slide {
    width: 20vw;
}

.works-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.works-slider {
    width: 100%;
    overflow: hidden;
    padding-top: 100px;
}

.works-swiper {
    width: 100%;
}

.works-swiper .swiper-slide {
    width: 20vw;
    aspect-ratio: 16 / 10;
    overflow: hidden;

}

.works-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================
   Footer
========================= */
.footer {
	width:100%;
	margin-top: auto;
    background-color: #eee;
    text-align: center;
    padding: 50px 20px;
    font-size: 0.8rem;
    color: #999;

}

.footer span {
    font-size: 0.6rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;}
   

    /* .nav {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 14px;
    } */

	/*ハンバーガーボタン ----*/
.hamburger{

  width: 30px;
  cursor: pointer;
  height: 22px;
  position: absolute;
  right:20px;
  top:20px;
  z-index: 200;
    
}

.hamburger > span{
 
  display: block;
  transition: transform 0.4s ease; /* 回転を滑らかに */
  width: 30px;
  height: 3px;
  margin: 6px 0;
  background-color: #333;
}



/* ハンバーガーをクリックして open クラスがついたとき */
#hamburger.open span:nth-child(1) {
transform: translateY(9px) rotate(-315deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0; /* 中央の線を消す */
}

#hamburger.open span:nth-child(3) {
transform: translateY(-9px) rotate(315deg);
}


/*ナビゲーションメニュー*/
.nav{
background-color: rgba(255, 255, 255, 0.871);
	font-size:medium;
    padding:2rem;
    width: 100%;
    height:100vh;
position: fixed;/*position:absolute のまま画面外へ動かすと消えたように見えてしまう*/
right: -100%; /* 自分の幅分右に隠す */
top:0;
transition: right 0.4s; /* アニメーション */
z-index:100;
cursor: pointer;}


.nav ul{
    width: 80%;
    margin:auto;
    line-height:5rem;
    display: block;
}

.nav li a{
display:block;}

.nav.active{
     right: 0;
     z-index: 100;
}
	

	
	
	
	
/* =========================
  NEWS*
========================= */
    .news-section {
        gap: 24px;
    }

    .news-heading {
        flex: 0 0 150px;
    }

    .news-heading__title {
        font-size: 2.6rem;
    }

    .news-heading__sub {
        font-size: 1.2rem;
    }

    .news-item {
        grid-template-columns: 120px 110px 1fr;
        gap: 12px;
        padding: 16px 0;
    }

    .news-date {
        font-size: 1.1rem;
    }

    .news-tag {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.95rem;
    }

    .news-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }


	/* =========================
   WORKS*
========================= */
	
	.top-works__list {
  grid-template-columns: 1fr;
  
}
	
	
/* =========================
   Slider
========================= */
    .works-swiper .swiper-slide {
        width: 60vw;
    }


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


@media (max-width: 600px) {
    .wrap {
        width: min(100%, calc(100% - 10px));
        margin: 5px auto;
    }

    .header {
        padding: 20px 10px;
    }

    .hero img {
        height: 220px;
    }


    .top-message {
        padding: 20px 20px 36px;
        text-align: left;
    }

    .top-message .title {
        font-size: 1.3rem;
    }

    .top-message p {
        font-size: 1rem;
    }

	

/* =========================
   News*
========================= */
    .news-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 10px 30px;
    }

    .news-heading {
        flex: none;
        width: auto;
        margin-bottom: 0;
    }

    .news-heading__title {
        font-size: 2.4rem;
    }

    .news-heading__sub {
        margin-top: 6px;
        font-size: 1.2rem;
    }

    .news-list {
        width: 100%;
    }


    .news-date {
        font-size: 1.1rem;
    }

    .news-tag {
        justify-self: start;
        min-height: 24px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .news-text {
        grid-column: 1 / -1;
        font-size: 1rem;
        line-height: 1.6;
    }


	

/* =========================
  Slider
========================= */
    .works-swiper .swiper-slide {
        width: 78vw;
    }

    .cards {
        gap: 24px;
        padding: 0 20px 28px;
    }

    .footer {
        padding: 36px 16px;
    }
}


/* =========================
   single・page・sidebar
========================= */

.sidebar figure{
margin-bottom:2rem;
}

.sidebar li {
  list-style: none;
line-height:2rem;
font-weight:bold;
	margin-left:1rem;

}


.content {
  display: block;
	 flex: 1;
}

/*sidebarありページ*/

.single .content {
  display: flex;
  gap: 50px;
}


.main {
	line-height:1.9rem;
  flex: 1;
  min-width: 0;
}

/* 新しく追加：全体を包むラッパー */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面全体の高さを確保 */
}


.main h1{
	color:#2F2A8B;
	font-size:1.5rem;
	margin-bottom:1rem;
	font-weight:bold;
}

.main h2{
	color:#740101;
	font-size:1.4rem;
	margin-bottom:1rem;
	font-weight:bold;
}

.main h3{
	color:#5e5d70;
	font-size:1.3rem;
	margin:1rem 0 0.5rem;
	font-weight:bold;
}

.sidebar {
  width: 300px;
}

/* =========================
   会社概要の表
========================= */

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
margin:50px auto;
	border:5px solid #eee;
}

.company-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.company-table td {
  padding: 18px 20px;
  vertical-align: top;
  color: #555;
}

/* 左列だけ見出し風にする */
.company-table td:first-child {
  width: 28%;
  background: #f7f8fa;
  font-weight: 600;
  color: #444;
}

/* 最後の行だけ少し締める */
.company-table tr:last-child {
  border-bottom: 2px solid #ddd;
}

/* =========================
   お問い合わせフォーム Contact Form 7 
========================= */

.contact-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: 16px;

}

.contact-form label {
  display: block;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #333;
  background: #fff;
}

.required,
.optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.required {
  background: #2F2A8B;
  color: #fff;
}

.optional {
  background: #eee;
  color: #555;
}

.privacy-check {
  margin: 32px 0 24px;
  font-size: 14px;
}

.privacy-check label {
  margin-bottom: 0;
  font-weight: 400;
}

.privacy-check input {
  width: auto;
  margin-right: 8px;
}

.submit-wrap {
  text-align: center;
}

.contact-form input[type="submit"] {
  width: auto;
  min-width: 220px;
  padding: 16px 40px;
  border: none;
  border-radius: 999px;
  background: #2F2A8B;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .3s ease;
}

.contact-form input[type="submit"]:hover {
  opacity: .75;
}
.privacy-check label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-check input[type="checkbox"] {
  margin: 0;
}

/* =========================
   Contact Form 7 メッセージ 
========================= */

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #c00;
}

.wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}

/* =========================
パンくずリスト
========================= */
.breadcrumb
{font-size:0.8rem;
color:#999;}

.breadcrumb a{
	text-decoration:underline;
}



/* =========================
works-single
========================= */

/*ページ送り -----------------*/

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
background-color:#eee:
}

.post-navigation a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.post-navigation a:hover {
  opacity: .7;
}




.works-single {
  padding: 20px 0;
}

.works-single__inner {
  width: min(960px, 90%);
  margin: 0 auto;
}

.works-single__title {
  margin-bottom: 40px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.4;
}

.works-single__image {
margin: 50px 0;
border-radius: 16px;
  overflow: hidden;
}

.works-single__image img {
  width: 100%;
  height: auto;
  display: block;
}

.works-single__info {
  margin-bottom: 56px;
  padding: 32px;
  background: #f7f7f7;
  border-radius: 16px;
}

.works-single__info p {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  line-height: 1.8;
}

.works-single__info p:first-child {
  padding-top: 0;
}

.works-single__info p:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.works-single__info strong {
  font-weight: 700;
  color: #222;
}

.works-single__info a {
  color: #0066cc;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.works-single__content {
  line-height: 1.9;
}

.works-single__content h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid #222;
  font-size: 26px;
}

.works-single__content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 22px;
}

.works-single__content p {
  margin-bottom: 24px;
}

.works-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}









/* =========================
works-archive
========================= */

.works-archive__inner {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.works-archive__title {
color:#2F2A8B;
	font-size:1.5rem;
	margin-bottom:1rem;
	font-weight:bold;

}

.works-list {
margin:50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.works-card {
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.works-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.works-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.works-card__body {
  padding: 24px;
}

.works-card__title {
  margin-bottom: 12px;
  font-size: 20px;
}

.works-card__text {
  color: #555;
  line-height: 1.8;
}

.works-card:hover img {
  transform: scale(1.05);
}


@media (max-width: 768px) {
	
  .content {
    flex-direction: column;
	  padding:0 10px;
  }

  .sidebar {
   width: min(100%, calc(100% - 20px));
	  margin-bottom:20px;
  }
	
/* =========================
   Contact Form 7 
========================= */
	  .contact-form {
    padding: 24px;
    border-radius: 12px;
  }

  .contact-form input[type="submit"] {
    width: 100%;
  }
	
/* =========================
works-single
========================= */
	
	 .works-single {
    padding: 56px 0;
  }

  .works-single__title {
    margin-bottom: 32px;
    text-align: left;
  }

  .works-single__image {
    margin-bottom: 32px;
  }

  .works-single__info {
    padding: 24px;
    margin-bottom: 40px;
  }

  .works-single__info p {
    display: block;
    padding: 14px 0;
  }

  .works-single__info strong {
    display: block;
    margin-bottom: 4px;
  }
	
	
}



