/*---------------------------------------------------------------------*/
/*　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　     　*/
/*　　　　　　　        共通用 CSS　2025.07.01　 　　　　　　          */
/*　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　     */
/*---------------------------------------------------------------------*/


* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: "Helvetica Neue", sans-serif;
 padding-top: 110px; /* ← headerの高さぶん余白をあける */
 /* Google Fontsを使用する場合は以下のように追記・変更してください */
 /* font-family: "Noto Sans JP", "Helvetica Neue", sans-serif; */
}


/* ヘッダー */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%; /* ← full width に */
 padding: 25px 40px;
 background: #fff;
 z-index: 1000;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
}

.logo img {
 width: 200px;
 height: auto;
}

/* ハンバーガーアイコン */
.menu-toggle {
 display: none;
 flex-direction: column;
 width: 30px;
 height: 20px;
 justify-content: space-between;
 cursor: pointer;
 z-index: 20;
}

.bar {
 height: 3px;
 width: 100%;
 background: #333;
 transition: 0.4s;
}

.menu-toggle.open .bar1 {
 transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar2 {
 opacity: 0;
}

.menu-toggle.open .bar3 {
 transform: rotate(-45deg) translate(6px, -6px);
}

nav.nav {
 display: flex;
 gap: 1.5rem;
 align-items: center;
 flex-wrap: wrap;
}

nav.nav a {
 text-decoration: none;
 color: #222;
 font-size: 0.95rem;
 font-weight:500;
}

.nav a:not(.phone):hover {
 text-decoration: none;
 border-bottom: 2px solid #222;
 padding-bottom: 2px;
}

.phone {
 font-size: 1.15rem !important;
 font-weight: 500;
 display: flex;
 align-items: center;
 border: 2px solid #222;
 padding: 8px 12px; /* Keep padding for spacing */
 border-radius: 6px;
 /* height: 42px; <-- REMOVE THIS LINE */
 box-sizing: border-box;
 color: #222;
 text-decoration: none;
 line-height: 1.5; /* Adjust line-height as needed to control vertical spacing */
 transition: background-color 0.4s ease, color 0.4s ease;
}

.phone:hover {
 background-color: #ddd;
 color: #000;
}

.phone-icon {
 width: 16px;
 height: 16px;
 margin-right: 6px;
 display: block;
 flex-shrink: 0;
 vertical-align: middle;
}


/* 各ページ共通 */

.pTitle {
  width: 95%;
  max-width: 1200px;
  margin: 50px auto 70px;
}

img.rounded-image {
  width: 100%;
  max-width: 1200px;
  height: 350px;
  margin: 0 auto 10px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.topicpath{
  width: 100%;
  max-width: 1200px;
 margin : 0 auto 20px;
 overflow : hidden;
 font-family: "Noto Sans", sans-serif;
 font-weight: 400;
 font-size: 0.9rem;
 color: #222;
 letter-spacing : 0.05em;
 text-align : right;
}

.topicpath a {
 color : #222;
 text-decoration : underline;
}

.topicpath a:hover {
 color : #222;
 text-decoration : none;
}

.pTitle h2 {
 font-family: "Alata", sans-serif;
 font-weight: 500;
 font-style: normal;
 font-size: 4rem;
 color: #222;
 margin-bottom: 10px;
 padding: 0;
 font-weight: 500;
 line-height: 1;
 transform: scaleY(0.9); /* 0.9で縦方向に20%縮む */
 display: inline-block; /* transformを適用するために必要 */
}

.pTitle p {
 font-family: "Noto Sans", sans-serif;
 font-weight: 500;
 font-size: 1.3rem;
 color: #222;
 margin-bottom: 40px;
}

.rainbow-line {
  width: 100%;
  max-width: 1200px;
  height: 3px;
  background: linear-gradient(to right, 
    #008CBA 0%, 
    #055CA1 14.28%, 
    #493B96 28.56%, 
    #8E2390 42.84%, 
    #FF0000 57.12%, 
    #FBD117 71.4%, 
    #8DC63F 100%
  );
}

.pWrap {
  width: 100%;
  margin: 0 auto 150px;
}

.pWrap h3 {
  width: 95%;
  max-width: 1200px;
 font-family: "Noto Sans", sans-serif;
 font-weight: 500;
 font-size: 2.7rem;
 color: #222;
 margin: 0 auto 60px;
}

.pWrap h3 .jp {
 font-size: 1.6rem; /* 日本語側を小さく */
 margin-left: 0.5em; /* 適度な余白（好みで調整） */
 display: inline-block;
}



/* フッター */


.f-contact {
 width: 100%;
 background:#ECF0EF;
 padding: 50px 0px;
}

.footer {
 width: 90%;
 margin: 0 auto;
 padding: 70px 0;
 overflow:hidden;
}

.footerLeft {
 float:left;
 width: 30%;
 margin: 0 5% 0 0;
}

.footerLeft img {
 width: 360px;
 height: auto;
 margin: 0 0 15px 0;
}

.footerLeft p {
 font-family: "Noto Sans", sans-serif;
 font-weight: 400;
 font-size: 0.85rem;
 line-height: 1.5;
 letter-spacing: 0.1em;
 color: #222;
}

.footerRight {
 float: left;
 width: 65%;
}

/* 上段：3カラム */
.footer-columns {
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
 margin-bottom: 20px;
}

.footer-columns .footer-section {
 width: 30%;
 margin-bottom: 30px;
}

/* 下段：2カラム */
.footer-columns-bottom {
 display: flex;
 justify-content: flex-start; /* ← 左寄せに */
 gap: 200px;                   /* ← 任意の間隔（例：30〜60pxくらい） */
 flex-wrap: wrap;
}

.footer-columns-bottom .footer-section {
 width: auto;         /* 必要に応じて可変幅に */
 max-width: 300px;    /* または適度な最大幅指定 */
 margin-bottom: 30px;
}

.footer-section h4 {
 font-family: "Alata", sans-serif;
 font-weight: 500;
 font-style: normal;
 font-size: 1.5rem;
 margin-bottom: 10px;
 color: #222;
}

.footer-section ul {
 list-style: none;
 padding: 0;
 margin: 0;
}

.footer-section ul li {
 margin-bottom: 10px;
}

.footer-section ul li a {
 font-family: "Noto Sans", sans-serif;
 color: #222;
 text-decoration: none;
 font-size: 0.85rem;
 letter-spacing: 0.05em;
 position: relative;
 padding-left: 14px; /* 矢印分の余白 */
}

.footer-section ul li a::before {
 content: "";
 position: absolute;
 top: 50%;
 left: 0;
 width: 5px;
 height: 5px;
 border-top: 1px solid #222;
 border-right: 1px solid #222;
 transform: translateY(-50%) rotate(45deg);
}

.footer-section ul li a:hover {
 text-decoration: underline;
}

.footer-copyright {
 background-color: #000;
 color: #aaa;
 text-align: center;
 font-family: "Noto Sans", sans-serif;
 font-weight: 600;
 font-size: 0.85rem;
 padding: 2em 10px;
 width: 100%;
}

.footer-copyright p {
 margin: 0;
}

.back-to-top {
 position: fixed;
 bottom: 30px;
 right: 30px;
 z-index: 1000;
 opacity: 0;
 visibility: hidden;
 pointer-events: none;
 transition: opacity 0.5s ease, visibility 0.5s ease;
}

.back-to-top.show {
 opacity: 1;
 visibility: visible;
 pointer-events: auto;
}

.back-to-top img {
 width: 50px; /* お好みでサイズ調整 */
 height: auto;
}





/* スマホ表示時の調整 */
@media (max-width: 767px) {

body {
 padding-top: 80px; /* ← スマホヘッダーの高さに合わせる */
}

.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 padding: 15px 20px;
 z-index: 1000;
 background: #fff;
 margin: 0; /* ← 念のため明示的に消す */
}




/* ハンバーガーアイコンはそのまま */
.menu-toggle {
 display: flex;
}

/* ナビゲーションの調整はそのまま */
nav.nav {
 position: absolute;
 top: 100%;
 right: 0;
 width: 100%;
 background: #fff;
 flex-direction: column;
 gap: 1rem;
 padding: 20px;
 transform: translateY(-100%);
 opacity: 0;
 pointer-events: none;
 transition: transform 0.4s ease, opacity 0.4s ease;
}

nav.nav.open {
 transform: translateY(0);
 opacity: 1;
 pointer-events: auto;
}

/* ここにヘッダーのマージン調整を追加 */
.header {
 width: 100%; /* 幅を100%にする */
 margin: 0; /* 上と左右のマージンを解除 */
 padding: 15px 20px; /* パディングも調整すると見栄えが良いでしょう */
}


/* 各ページ共通 */

.pTitle {
 width: 90%;
 margin: 15px auto 50px;
}

img.rounded-image {
 width: 100%;
 height: auto; /* 高さは自動で調整 */
 border-radius: 8px;
 margin-bottom: 10px;
}

.topicpath {
 width: 100%;
 margin: 0 auto 20px;
}

.rainbow-line {
 width: 100%;
 height: 3px;
}

.pWrap {
 width: 90%;
 margin: 0 auto 100px;
}

.pWrap h3 {
  width: 100%;
  max-width: none;
 font-size: 1.7rem;
 color: #222;
 margin-bottom: 30px;
}

.pWrap h3 .jp {
 font-size: 1rem; /* 日本語側を小さく */
 margin-left: 0.5em; /* 適度な余白（好みで調整） */
 display: inline-block;
}


/* フッター */

.f-contact {
 width: 100%;
 background:#ECF0EF;
 padding: 30px 0px;
}


.footer {
 width: 90%;
 margin: 0 auto;
 padding: 50px 0;
}

.footerLeft {
 float:left;
 width: 100%;
 margin: 0 0 30px 0;
}

.footerLeft img {
 width: 300px;
 height: auto;
 margin: 0 0 15px 0;
}


.footerRight {
 flex-direction: column;
}

.footer-columns,
.footer-columns-bottom {
 flex-direction: column;
}

.footer-columns-bottom {
 gap: 0;
}


.footer-section {
 width: 100% !important;
 margin-bottom: 20px;
}
  

.back-to-top {
 position: fixed;
 bottom: 20px;
 right: 20px;
 z-index: 1000;
 opacity: 0;
 visibility: hidden;
 pointer-events: none;
 transition: opacity 0.5s ease, visibility 0.5s ease;
}

.back-to-top.show {
 opacity: 1;
 visibility: visible;
 pointer-events: auto;
}

.back-to-top img {
 width: 40px; /* お好みでサイズ調整 */
 height: auto;
}
	  
}