/* ベーススタイル */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

body,
body * {
  font-family: 'Noto Serif JP', serif;
}

section {
  text-align: center;
  animation: fadeInBackground 3s ease-out forwards; 
}

h1 {
  font-size: 2rem;       
  font-weight: bold;       
}

.page-header {
  padding-top: 150px;
}

.title_wrap {
  padding-top: 10px;
}










/* ヘッダー */

.main-header {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 70px 0;
  z-index: 1000;
}

body.admin-bar .main-header + * {
  margin-top: 40px;
}

/* デフォルト（PC用） */
.hero {
  background-image: url('../images/pc.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}

/* スマホ用背景画像（画面幅768px以下） */
@media screen and (max-width: 768px) {
  .hero {
    background-image: url('../images/sp.jpg');
  }
}





/* テキストの1文字ずつ表示アニメーション（日本語メッセージ） */
.main-message {
  position: absolute;
  max-width: 100%;
  top: 40vh;
  left: 5%;
  transform: none; 
  width: 100%;
  height: auto;
  font-size: 3.5rem;
  color: #000000;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0;
  animation:
    fadeInContainer 0.5s ease-out forwards 0s,
    textColorChange 10s infinite 2s;
}

/* 各文字をフェードインさせる */
.main-message span {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
}

.second-line {
  margin-top: 80px; 
}

/* アニメーション定義 */
@keyframes fadeInLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInContainer {
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textColorChange {
  0% {
    color: black;
  }
  50% {
    color: #00b9f1;
  }
  100% {
    color: black;
  }
}





/* ロゴ */
.logo-container {
  position: fixed;
  top: 50px; 
  left: 50px; 
  z-index: 10;
}

.logo-container img {
  width: 20%; 
  height: auto;
}





/* PCナビ用 */
nav {
  position: fixed;
  top: 40px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 0;
  width: auto;
}

/* 日本語テキスト */
.jp {
  display: inline-block; 
  white-space: nowrap; 
}

/* 英語テキスト */
.en {
  display: inline-block; 
  white-space: nowrap; 
  font-size: 14px; 
  margin-top: 5px;
}

.nav-menu-pc {
  list-style-type: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-menu-pc li {
  margin: 0;
}

.nav-menu-pc a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  text-align: center;
  display: inline-block;
  padding: 5px;
}

.nav-menu-pc a:hover {
  color: #00b9f1;
}





/* ハンバーガーメニュー用 */
.menu-container {
  position: fixed;
  top: 30px;
  left: 50px;
  z-index: 100;
}

.menu-btn {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  z-index: 110;
}

.bar {
  height: 4px;
  width: 100%;
  background-color: #00b9f1;
  border-radius: 2px;
  transition: all 0.3s;
}

/* アイコンの変形（Xマーク） */
.menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7.5px);
}

.menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7.5px);
}

.nav-menu-sp {
  position: fixed;
  top: 0;
  left: -200px;
  width: 200px;
  height: 100vh;
  background-color: rgba(0, 185, 241, 0.7);
  /* rgba(0, 86, 173, 0.7);  */
  padding-top: 100px;
  transition: left 0.3s;
  z-index: 100;
  overflow-y: auto;
}

.nav-menu-sp ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu-sp ul li {
  padding: 15px 20px;
}

.nav-menu-sp ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.nav-menu-sp.active {
  left: 0;
}

.nav-menu-sp li {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-menu-sp.show li {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu-sp.show li:nth-child(1) {
  transition-delay: 0.1s;
}
.nav-menu-sp.show li:nth-child(2) {
  transition-delay: 0.2s;
}
.nav-menu-sp.show li:nth-child(3) {
  transition-delay: 0.3s;
}
.nav-menu-sp.show li:nth-child(4) {
  transition-delay: 0.4s;
}
.nav-menu-sp.show li:nth-child(5) {
  transition-delay: 0.5s;
}
.nav-menu-sp.show li:nth-child(6) {
  transition-delay: 0.6s;
}





/* お問い合わせリンク */
.contact-link {
  position: fixed;
  top: 50px;
  right: 50px;
  z-index: 1000;
  background: linear-gradient(135deg, #00b9f1, #0056ad); 
  padding: 10px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.contact-link a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.contact-link a:hover {
  color: #e0f7ff;
}





/* PCではハンバーガーメニューを非表示に */
@media screen and (min-width: 768px) {
  .menu-container {
    display: none;
  }
  .nav-menu-pc {
    display: flex;
  }
}

/* スマホではPCメニューを非表示に */
@media screen and (max-width: 767px) {
  nav {
    display: none;
  }
  .nav-menu-pc {
    display: none;
  }
}





/* レスポンシブ対応 */
@media screen and (max-width: 768px) {

  /* メッセージテキストの調整 */
  .main-message,
  .main-message.second-line {
    font-size: 2.0rem;
    top: 50vh;
    left: 7%;
    text-align: center;
    margin: 10px 0;     
  }  

  .main-message.second-line {
    top: 57.5vh; 
  }

  /* ロゴ（左上固定）のサイズ調整 */
  .logo-container img {
    width: 35%;
    margin-top: 20px;
    margin-left: 30px;
  }

  /* ハンバーガーメニューの表示調整 */
  .menu-container {
    top: 70px;
    left: 20px;
  }

  .jp, .en {
    display: block; 
  }

  /* お問い合わせリンクの位置調整 */
  .contact-link {
    position: fixed;
    padding: 10px 30px;
    top: 60px;
    right: 15px;
    font-size: 16px;
  }

  .vk-mobile-nav-menu-btn {
    display: none;
  }

  body.admin-bar .main-header + * {
    margin-top: 50px;
  }
}





/* スマホ横向き（ランドスケープ) */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .menu-container {
    margin-top: -5px;
  }

  .logo-container img {
    margin-top: 10px;
    width: 25%; 
  }

  /* ナビゲーションメニューの文字サイズを小さく */
  .nav-menu-sp ul li a {
    font-size: 16px; 
  }

  /* 日本語テキスト */
  .jp {
    font-size: 16px;
  }

  /* 英語テキスト */
  .en {
    font-size: 12px; 
  }

  .message-wrapper {
    position: relative;
    top: -20vh;
  }  

  .main-message {
    margin-bottom: 0;
  }
  
  .main-message.second-line {
    margin-top: 30px;
  }
}









/* 企業理念 */

#philosophy {
  background: linear-gradient(to top, rgba(0, 185, 241, 0.3), rgba(255, 255, 255, 0.9));
}

#philosophy h1 {
  padding-top: 100px;
}

#philosophy p:first-of-type {
  margin-top: -20px;
  margin-bottom: 100px;
}

#philosophy p {
  line-height: 2.0; 
}

#philosophy p:nth-of-type(3),
#philosophy p:last-of-type {
  margin-top: 50px; 
}

#philosophy p:last-of-type {
  margin-bottom: 100px;
}





/* ギャラリー */

.gallery {
  display: flex;
  justify-content: center;
  width: 100%;  
  height: 100vh; 
  padding: 0 100px;
  gap: 100px;
  overflow: hidden; 
}

.column {
  flex: 1;
  height: 100%; 
  overflow: hidden; 
}

.image-group img {
  width: 100%;
  height: auto;
  padding: 50px 0;
  object-fit: cover;
  display: block;
}

.col-center .image-group {
  transform: scaleY(-1);
}

.col-center .image-group img {
  transform: scaleY(-1);
}





/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .gallery {
    padding: 0 50px;
    gap: 50px;
  }

  .column img {
    margin: 30px 0;
  }
}

@media screen and (max-width: 768px) {
  #philosophy {
    padding: 0 20px;
  }

  #philosophy h1 {
    font-size: 24px;
  }

  #philosophy p {
    font-size: 14px;
  }

  .gallery {
    height: auto;
    gap: 20px;
    padding: 0;
  }

  .column {
    height: 300px; 
  }

  .image-group {
    animation: none; 
    flex-direction: column !important;
  }

  .column img {
    width: 100%;
    margin: -40px 0;
    height: auto;
  }
}










/* 代表挨拶 */

#greeting {
  background: rgba(0, 185, 241, 0.3);
  padding: 0 15%;
  padding-top: 100px;
}

#greeting h1 {
  padding-top: 50px;
}

#greeting p:first-of-type  {
  margin-top: -20px;
  margin-bottom: 100px;
}

.ceo-image {
  width: 100%; 
  max-width: 200px; 
  height: auto; 
  border-radius: 50%; 
  margin-bottom: 50px;
}

#greeting  p {
  line-height: 2.0; 
}

#greeting p:last-of-type {
  margin-bottom: 0; 
}





/* レスポンシブ対応  */
@media screen and (max-width: 1024px) {
  #greeting {
    padding: 0 100px;
  }

  #greeting p {
    font-size: 16px;
  }

  .ceo-image {
    max-width: 200px;
    margin-bottom: 40px;
  }
}

@media screen and (max-width: 768px) {
  #greeting {
    padding: 0 30px;
  }

  #greeting h1 {
    font-size: 24px;
    text-align: center;
  }

  #greeting p:first-of-type {
    margin-bottom: 60px;
    text-align: center;
  }

  #greeting p {
    font-size: 14px;
    line-height: 1.8;
  }

  .ceo-image {
    display: block;
    margin: 0 auto 30px auto; 
    max-width: 150px;
  }
}










/* サービス */

#services {
  background: linear-gradient(to bottom, rgba(0, 185, 241, 0.3), #ffffff);
  padding: 100px 0;
  text-align: center;
}

#services p:first-of-type  {
  margin-top: -20px;
  margin-bottom: 100px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.service {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.75);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: #00b9f1;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

.service:hover .service-icon {
  color: #0056ad;
}

.service h2 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 70px;
  line-height: 1.5;
}

.service:nth-of-type(2) h2,
.service:nth-of-type(3) h2 {
  margin-bottom: 105px; 
}

.service p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 2.0;
  letter-spacing: -0.07em;
}

.service a {
  font-weight: 600;
  color: #3600e6;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto;
}

.service a:hover {
  color: #0056ad;
  text-decoration: underline;
}





/* レスポンシブ対応  */
@media screen and (max-width: 768px) {
  #services {
    padding: 60px 0;
  }

  #services p:first-of-type {
    margin-bottom: 60px;
  }

  .services-container {
    padding: 0 20px;
    gap: 30px;
  }

  .service {
    padding: 20px 25px;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .service h2 {
    font-size: 1.3rem;
    margin-bottom: 40px;
  }

  .service:nth-of-type(2) h2,
  .service:nth-of-type(3) h2 {
    margin-bottom: 60px;
  }

  .service p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
  }

  .service a {
    font-size: 0.95rem;
  }
}










/* Looping Text */

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  background: #ffffff; 
  color: #00b9f1;
  padding: 1rem 0;
  position: relative;
}

.marquee-text {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-size: 7rem; 
  font-weight: bold;
}

.marquee-text span {
  display: inline-block;
  padding-right: 1rem; 
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}





/* レスポンシブ対応  */
@media screen and (max-width: 768px) {
  .marquee-text {
    font-size: 3rem; 
    animation: marquee 30s linear infinite; 
  }

  .marquee-wrapper {
    padding: 0.5rem 0;
  }
}

@media screen and (max-width: 480px) {
  .marquee-text {
    font-size: 2.2rem; 
    animation: marquee 20s linear infinite;
  }

  .marquee-wrapper {
    padding: 0.4rem 0;
  }
}










/* プロダクト */

#products p:first-of-type  {
  margin-top: -20px;
  margin-bottom: 100px;
}

#products {
  background-color: #ffffff;
  text-align: center;
}

#products h1 {
  color: #333;
  margin-top: 100px;
}

#products p {
  color: #666;
  line-height: 2.0; 
  margin-bottom: 50px;
}

.products-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.product {
  background-color: #f9f9f9;
  border-radius: 15px;
  padding: 15px;
  width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 100px;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.product img {
  max-width: 100%;
  border-radius: 10px;
  margin: 50px 0;
}

.product h2 {
  font-size: 1.5em;
  color: #222;
  margin-bottom: 50px;
  line-height: 1.5;
}

.product p {
  font-size: 1em;
  color: #555;
}

.product a {
  text-decoration: none;
  color: #3600e6;
  font-weight: bold;
}

.product a:hover {
  color: #0056ad;
  text-decoration: underline;
}





/* レスポンシブ対応  */
@media screen and (max-width: 1024px) {
  .product {
    width: 50%; 
  }
}

@media screen and (max-width: 768px) {
  .products-container {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .product {
    width: 50%;
    padding: 20px;
    margin-bottom: 60px;
  }

  .product img {
    margin: 20px 0;
  }

  #products h1 {
    font-size: 1.8rem;
    margin-top: 60px;
  }

  #products p {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .product h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .product p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .product {
    width: 95%;
    padding: 20px;
  }

  .product h2 {
    font-size: 1.2rem;
  }

  .product p {
    font-size: 0.9rem;
  }

  #products h1 {
    font-size: 1.5rem;
    margin-top: 50px;
  }

  #products p:first-of-type {
    margin-bottom: 60px;
  }
}










/* フッター */

.main-footer {
  background-color: #1a1a1a;
  padding: 40px 20px;
  color: #fff;
}

/* 左右分割 */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-contents-title {
  font-size: 1.5rem;
  color: #fff;
  padding-top: 50px;
  margin-left: 20%;
  margin-bottom: 10px;
}

/* ナビ：左側 */
.footer-nav {
  list-style: none;
  padding-top: 50px;
  margin-top: 100px;
  margin-left: -35%;
}

.footer-nav li {
  margin-bottom: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.footer-nav .jp,
.footer-nav .en {
  display: block;
  line-height: 1.2;
}

.footer-nav .jp {
  font-weight: bold;
  color: #fff;
}

.footer-nav .en {
  font-size: 0.8em;
  color: #fff;
}

/* 右側：ロゴと住所 */
.footer-right {
  width: 45%;
  display: flex;
  flex-direction: column;
  margin-top: 200px;
}

.footer-logo img {
  width: 35%;
  height: auto;
  margin-top: 50px;
  margin-left: 50px;
}

.footer-contact {
  margin-top: 100px;
}

.footer-contact p {
  margin: 10px 0;
}

/* コピーライト */
.copyright {
  font-size: 0.8em;
  color: #999;
  text-align: center;
  margin-bottom: -20px;
}

.sp-break {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-break {
    display: inline;
  }
}





/* レスポンシブ対応  */
@media screen and (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contents-title {
    margin-left: 0;
    padding-top: 20px;
  }

  .footer-nav {
    width: 100%; 
    margin: 0 auto;
  }

  .footer-nav li {
    flex: 1 1 100%; 
    text-align: center; 
  }

  .footer-right {
    width: 100%;
    margin-top: 30px;
    align-items: center;
  }

  .footer-logo img {
    margin: 0 auto;
    margin-top: 20px;
  }

  .footer-contact {
    margin: 30px 0;
    padding: 0 15px;
  }
}





/* 電話番号リンク・メールリンク 共通スタイル */
a.tel-link, a.mail-link {
  color: #3600e6;
  cursor: pointer;
}

/* スマホ（768px以下） */
@media (max-width: 768px) {
  a.tel-link, a.mail-link {
    color: #3600e6;
  }

  a.tel-link:hover, a.mail-link:hover {
    color: #0056ad;
    text-decoration: underline;
  }
}

/* PC（769px以上） */
@media (min-width: 769px) {
  /* フッター内のリンクを白に */
  .main-footer a.tel-link,
  .main-footer a.mail-link {
    color: white;
  }

  .main-footer a.tel-link:hover,
  .main-footer a.mail-link:hover {
    color: white;
    text-decoration: none;
  }

  /* #information セクション内のリンクを黒に */
  #information a.tel-link,
  #information a.mail-link {
    color: black;
  }

  #information a.tel-link:hover,
  #information a.mail-link:hover {
    color: black;
    text-decoration: none;
  }
}




















/* パンくずリスト */
li:first-child span[itemprop="name"],
li:first-child i.fas {
  cursor: pointer;
  color: #3600e6;
}

li:first-child:hover span[itemprop="name"],
li:first-child:hover i.fas {
  color: #0056ad;
}

li:first-child:hover span[itemprop="name"] {
  text-decoration: underline;
}




















/* Services */

#services_p {
  max-width: 1000px;
  margin: 0 auto;
}

#services_p h1 {
  margin-top: 150px;
}

#services_p > p:first-of-type {
  margin-bottom: 100px; 
}

/* サービスブロック */
.service-block {
  margin-bottom: 50px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease; 
}

/* サービスブロックがホバーされたときの効果 */
.service-block:hover {
  transform: translateY(-5px); 
  border-bottom: 1px solid #3600e6; 
}

.service-block h2 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #222;
  line-height: 1.5;
}

.service-block:hover .service-icon {
  color: #0056ad;
}

.service-block a {
  color: #3600e6;
  text-decoration: none;
}

.service-block a:hover {
  color: #0056ad;
  text-decoration: underline;
}

.service-block > a {
  display: inline-block;
  margin-top: 100px;
}










/* Products */

body.post-name-products {
  background: linear-gradient(135deg, rgba(0, 185, 241, 0.3), #ffffff);
}

#products_p h1 {
  padding-top: 200px;
}

#products_p p:first-of-type {
  margin-bottom: 100px; 
}

/* 一覧タイトル */
.product-section__title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #222;
}

/* カードのグリッドレイアウト */
.product-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

/* 各プロダクトカード */
.product-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 46px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 100px;
}

/* ホバー時に浮き上がる */
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-10px); 
}

/* カード内の画像 */
.product-card__image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 50px;
}

/* カード内のタイトル */
.product-card__title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #222;
}

/* カード内のテキスト */
.product-card__text {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 2.0; 
}

/* リンク */
.product-card__link {
  color: #3600e6;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.product-card__link:hover {
  color: #0056ad;
  text-decoration: underline;
}





/* レスポンシブ対応  */
@media screen and (max-width: 1024px) {
  .product-section__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .product-card {
    padding: 20px;
    margin-bottom: 80px;
  }

  .product-card__image {
    margin-bottom: 30px;
  }

  .product-card__title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .product-card__text {
    font-size: 13px;
  }
}

@media screen and (max-width: 600px) {
  .product-section__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 16px;
  }

  #products_p h1 {
    padding-top: 150px;
    font-size: 24px;
    text-align: center;
  }

  .product-card {
    padding: 16px;
    margin-bottom: 60px;
  }

  .product-card__title {
    font-size: 16px;
  }

  .product-card__text {
    font-size: 12px;
    line-height: 1.8;
  }

  .product-card__link {
    font-size: 14px;
  }
}










/* News */

#news p:first-of-type {
  margin-bottom: 100px;
}

.news-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px; 
}

#news-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px; 
  width: 100%;
  max-width: 1200px;
}

.news-item {
  width: 30%;
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.news-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  padding: 20px;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 50px;
}

.news-text {
  padding: 15px;
}

.news-text h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

.news-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  display: block;
}

.news-text p {
  font-size: 14px;
  color: #666;
  line-height: 2.0;
}





/* タブレット（2列） */
@media (max-width: 1024px) {
  .news-item {
    width: 45%;
  }
}

/* スマホ（1列） */
@media (max-width: 768px) {
  .news-item {
    width: 100%;
    margin: 20px 20px; 
  }

  .news-image-wrapper {
    height: 180px;
    padding: 20px;
  }

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

  .news-text h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding: 0 20px;
  }

  .news-text p {
    font-size: 13px;
    padding: 0 20px;
  }
}










/* Achievements */

body.post-name-achievements,
body.post-type-archive-achievement {
  background: linear-gradient(135deg, rgba(0, 185, 241, 0.3), #ffffff);
}

#achievements h1 {
  padding-top: 200px;
}

#achievements p:first-of-type {
  margin-top: 50px;
  margin-bottom: 100px; 
}

#achievements p:nth-of-type(2) {
  font-size: 1.2rem;   
  font-weight: bold;
  line-height: 2.0;    
  margin-bottom: 50px;
}

.improvement-link {
  display: inline-block;
  margin-bottom: 100px;
  color: #3600e6;
  cursor: pointer;
}

.improvement-link:hover {
  color: #0056ad;
  text-decoration: underline;
}

/* 共通ボタンスタイル */
.filter-buttons,
.tag {
  text-align: center;
}

.filter-buttons button,
.tag {
  margin: 0 10px;
  padding: 8px 16px;
  background: #eee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.filter-buttons button.active,
.tag.active {
  background-color: rgba(0, 185, 241, 0.9); 
  color: white;
}

button:hover,
.achievement-card:hover .tag,
.achievement-card:hover .filter-buttons button {
  background-color: #0056ad;
  color: white;
}

/* カード構造とホバー */
.achievement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(100% - 40px); 
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, all 0.3s ease;
  margin: 20px;
  color: inherit;
  text-decoration: none;
}

.achievement-card:hover {
  transform: translateY(-5px);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.achievement-card img {
  margin-bottom: 30px;
}

.achievement-card .filter-buttons,
.achievement-card .tag {
  text-align: left;
  justify-content: flex-start;
  margin-bottom: 20px; 
}

.achievement-card .tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px; 
  font-weight: 500;
}

/* --- カード外のボタン --- */
button[data-filter="portal"]:hover,
.tag[data-filter="portal"]:hover {
  background-color: rgba(0, 123, 255, 0.9);
  color: #fff;
}

button[data-filter="webapp"]:hover,
.tag[data-filter="webapp"]:hover {
  background-color: rgba(40, 167, 69, 0.9);
  color: #fff;
}

button[data-filter="mobile"]:hover,
.tag[data-filter="mobile"]:hover {
  background-color: rgba(232, 62, 140, 0.9);
  color: #fff;
}

button[data-filter="homepage"]:hover,
.tag[data-filter="homepage"]:hover {
  background-color: rgba(253, 126, 20, 0.9);
  color: #fff;
}

button[data-filter=""]:hover,
.tag[data-filter=""]:hover {
  background-color: rgba(108, 117, 125, 0.9);
  color: #fff;
}

/* --- カード内タグのホバー --- */
.achievement-card .tag[data-filter="portal"]:hover {
  background-color: rgba(0, 123, 255, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter="webapp"]:hover {
  background-color: rgba(40, 167, 69, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter="mobile"]:hover {
  background-color: rgba(232, 62, 140, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter="homepage"]:hover {
  background-color: rgba(253, 126, 20, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter=""]:hover {
  background-color: rgba(108, 117, 125, 0.9);
  color: #fff;
}

/* --- カード全体ホバー時にカード内タグの色を変える --- */
.achievement-card[data-category="portal"]:hover .tag[data-filter="portal"] {
  background-color: rgba(0, 123, 255, 0.9);
  color: #fff;
}

.achievement-card[data-category="webapp"]:hover .tag[data-filter="webapp"] {
  background-color: rgba(40, 167, 69, 0.9);
  color: #fff;
}

.achievement-card[data-category="mobile"]:hover .tag[data-filter="mobile"] {
  background-color: rgba(232, 62, 140, 0.9);
  color: #fff;
}

.achievement-card[data-category="homepage"]:hover .tag[data-filter="homepage"] {
  background-color: rgba(253, 126, 20, 0.9);
  color: #fff;
}

.achievement-card[data-category=""]:hover .tag[data-filter=""] {
  background-color: rgba(108, 117, 125, 0.9);
  color: #fff;
}

/* --- ボタンhover時にカード内タグの色を変える（.tag.hovered をカテゴリごとに定義） --- */
.achievement-card .tag.hovered[data-filter="portal"] {
  background-color: rgba(0, 123, 255, 0.9);
  color: #fff;
}

.achievement-card .tag.hovered[data-filter="webapp"] {
  background-color: rgba(40, 167, 69, 0.9);
  color: #fff;
}

.achievement-card .tag.hovered[data-filter="mobile"] {
  background-color: rgba(232, 62, 140, 0.9);
  color: #fff;
}

.achievement-card .tag.hovered[data-filter="homepage"] {
  background-color: rgba(253, 126, 20, 0.9);
  color: #fff;
}

.achievement-card .tag.hovered[data-filter=""] {
  background-color: rgba(108, 117, 125, 0.9);
  color: #fff;
}

/* --- カード内タグの初期スタイル（カテゴリ別の色）--- */
.achievement-card .tag[data-filter="portal"] {
  background-color: rgba(0, 123, 255, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter="webapp"] {
  background-color: rgba(40, 167, 69, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter="mobile"] {
  background-color: rgba(232, 62, 140, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter="homepage"] {
  background-color: rgba(253, 126, 20, 0.9);
  color: #fff;
}

.achievement-card .tag[data-filter=""] {
  background-color: rgba(108, 117, 125, 0.9);
  color: #fff;
}

.achievement-card h2 {
  margin-left: 10px;
  text-align: left;
  font-size: 20px;
  font-weight: bold;
  color: #000; 
}

.achievement-card .entry-content a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.achievement-card a {
  text-decoration: none;
  color: #3600e6;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.achievement-card a:hover {
  color: #0056ad;
  text-decoration: underline;
}

.icon-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 2;
  transition: color 0.3s ease;
}

.achievement-card:hover .icon-overlay {
  color: #0056ad; 
}

.tag.hovered,
.icon-overlay.hovered {
  background-color: #0056ad ;
  color: white ;
}

/* 画像とテキスト */
.achievement-image img,
.image-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.achievement-image img {
  border-radius: 10px; 
  overflow: hidden;
}

.post-thumbnail img {
  border-radius: 10px;
  overflow: hidden;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: -70px;
}

.text-wrapper h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: -20px;

}

/* レイアウトラッパー */
.achievements-container {
  width: 100%;
  display: flex;
  justify-content: center; 
}

.achievements-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;  
  padding-bottom: 100px;
}





/* レスポンシブ対応 */
@media (max-width: 600px) {
  .achievement-card {
    flex: 1 1 100%; 
    max-width: 100%;
    margin: 20px; 
  }

  .filter-buttons {
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-bottom: 30px;
  }

  .filter-buttons button {
    font-size: 11px;
    padding: 6px 2px;
    margin: 6px 2px;
  }
}

@media (min-width: 600px) {
  .achievement-card {
    flex: 1 1 calc(70% - 20px); 
    max-width: calc(70% - 20px);
    margin: 20px; 
  }

  .filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;  
  }

  .filter-buttons button {
    margin: 5px; 
  }
}

@media (min-width: 960px) {
  .achievement-card {
    flex: 1 1 calc(33.333% - 40px);  
    max-width: calc(33.333% - 40px);
    margin: 10px; 
  }

  .filter-buttons {
    margin-bottom: 50px;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;  
  }

  .filter-buttons button {
    margin: 5px;  
  }
}










/* single Achievement */
.post-thumbnail {
  margin-top: 50px; 
}

.url-link {
  color: #3600e6;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.url-link:hover {
  color: #0056ad;
  text-decoration: underline;
}

.single-achievement .post-thumbnail img {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}










/* taxonomy-achievement_category */
.term-header .archive-title {
  margin-top: -3em;    
}










/* Designers */

#designers {
  background-position: center;
  background-repeat: no-repeat;
  height: auto;
}

#designers p:first-of-type {
  margin-bottom: 100px;
}

#designers p:nth-of-type(2) {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 2.0;
  margin-bottom: 50px;
}

#designer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 40px;
}

.designer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: calc(33.333% - 40px);
  max-width: 300px;
  text-align: center;
  box-sizing: border-box;
  min-height: 400px; 
  padding: 20px 20px;
  background-color: #fff;
  border: 1px solid #ccc; 
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.designer-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 30px;
}

.designer-name {
  font-size: 1.5em;
  font-weight: bold;
  flex-grow: 0; 
}

.designer-card h2 {
  font-size: 1.0em;
  margin-top: 20px;
  margin-bottom: 50px;
  flex-grow: 1;
}

.designer-card a {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #3600e6;
  font-weight: bold;
  margin-top: auto; 
}

.designer-card a:hover {
  color: #0056ad;
  text-decoration: underline;
}





.designer-card {
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  padding: 20px 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.designer-card:hover {
  transform: translateY(-5px);
}





.designer-card {
  position: relative;
  transition: all 0.3s ease;
}

.icon-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 2;
  transition: color 0.3s ease;
}

/* ホバーしたらアイコンの色が青に */
.designer-card:hover .icon-overlay {
  color: #0056ad; 
}





/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  #designer-container {
    flex-direction: column;
    align-items: center;
  }

  .designer-card {
    width: 90%;
    max-width: 500px;
  }

  .designer-name {
    font-size: 1.2em;
  }

  .designer-card h2 {
    font-size: 0.9em;
  }

  .designer-card a {
    font-size: 1rem;
  }

  .icon-overlay {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .designer-card {
    width: 95%;
  }

  .designer-name {
    font-size: 1.1em;
  }

  .designer-card h2 {
    font-size: 0.8em;
  }

  .designer-card a {
    font-size: 0.9rem;
  }

  .icon-overlay {
    font-size: 14px;
  }
}










/* Information */

body.post-name-information {
  background: linear-gradient(135deg, rgba(0, 185, 241, 0.3), #ffffff);
}

#information h1 {
  padding-top: 200px;
}

#information p:first-of-type  {
  margin-bottom: 100px;
}

#information ul li {
  list-style-type: none; 
  margin-top: 30px;
}

.info-wrapper {
  display: flex;
  justify-content: center;
}

.info-wrapper ul {
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  text-align: center; 
}

.info-wrapper ul li {
  list-style: none;
  text-align: center;
  margin-top: 30px;
}

.map-container iframe {
  margin-top: 100px; 
  margin-bottom: 100px;  
}










/* Contact */

#contact p:first-of-type  {
  margin-bottom: 50px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 30px;
  width: 100%;
}

input, textarea {
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.checkbox-group {
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;          
  gap: 20px;
  margin-top: 10px;
}

.error-message {
  color: red;
  font-size: 14px;
  display: none;
  margin-top: 5px;
}

.description-box {
  display: none;
  background: #f9f9f9;
  padding: 10px;
  margin-top: 10px;
  border-left: 4px solid #3600e6;
  color: #333;
  font-size: 14px;
}

form input[type="submit"],
form button[type="submit"] {
  width: 200px;              
  display: block;    
  margin: 0 auto;  
  padding: 12px 20px;
  font-size: 16px;
  background-color: rgba(0, 185, 241, 0.9); 
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
  background-color: #0056ad;
}

.links p {
  white-space: nowrap;     
  display: flex;          
  gap: 60px;            
  justify-content: center; 
}

.links a {
  text-decoration: none;
  color: #3600e6;;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  margin-right: 0;
}

.links a:hover {
  color: #0056ad;
  text-decoration: underline;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-line label {
  white-space: nowrap;
  margin-top: 8px;
}

.wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  gap: 10px;
}

.wpcf7-list-item {
  margin: 0; 
  padding: 0;
  width: 100%;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wpcf7-list-item input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}





/* その他の説明 */

/* hiddenクラスで非表示にする */
.hidden {
  display: none;
}

/* 最初は非表示 */
.conditional-field {
  display: none;
}










/* Privacy Policy */

#privacy-policy {
  padding: 2em;
  background-color: #fdfdfd;
}

#privacy-policy h1 {
  font-size: 1.8em;
  margin-bottom: 1.5em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5em;
}

#privacy-policy table {
  width: 100%;
  border-collapse: collapse;
}

#privacy-policy th,
#privacy-policy td {
  border: 1px solid #ccc;
  padding: 1em;
  vertical-align: top;
  text-align: left;
  line-height: 2.0;
}

#privacy-policy th {
  background-color: #f0f0f0;
  width: 25%;
}










/* Legal Notice */

#legal-notice {
  padding: 2em;
  background-color: #fdfdfd;
}

#legal-notice h1 {
  font-size: 1.8em;
  margin-bottom: 1em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 50px;
}

#legal-notice table {
  width: 100%;
  border-collapse: collapse;
}

#legal-notice th,
#legal-notice td {
  border: 1px solid #ccc;
  padding: 1em;
  vertical-align: top;
  text-align: left;
  line-height: 2.0;
}

#legal-notice th {
  background-color: #f0f0f0;
  width: 25%;
}

#legal-notice a {
  text-decoration: none;
  color: #3600e6;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

#legal-notice a:hover {
  color: #0056ad;
  text-decoration: underline;
}
