body{
padding-top: 80px; /* ヘッダー分の余白（PC） */
}

/* 既存の header{} を上書き */
header{
position: fixed;
top: 0; left: 0;
width: 100%;
z-index: 1000;
background: rgba(0,0,0,.6); /* 半透明の黒 */
color: #fff; /* ヘッダー内のデフォ文字色を白に */
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 24px;
box-sizing: border-box;
}

/* タイトルは白でコントラスト確保 */
.site-title h1,
.site-title p{
color:#fff;
}

/* ナビ：折り返し可／右寄せ */
nav ul{
list-style: none;
display: flex;
flex-wrap: wrap; /* 幅が足りない時に改行 */
gap: 16px;
margin: 0;
padding: 0;
justify-content: flex-end;
}

/* ナビリンク（通常） */
nav ul li a{
color:#fff; /* 白字（背景が暗いので） */
position: relative;
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
font-size: 15px;
line-height: 1.2;
transition: color .3s ease;
}

/* 下の英語テキスト（サブ） */
nav ul li a span{
font-size: 12px;
color: #cccccc; /* 既存より少し明るく */
margin-top: 4px;
font-weight: 600;
letter-spacing: .08em;
text-align: center;
}

/* ホバー時 */
nav ul li a:hover{
color:#fff;
}
nav ul li a:hover span{
color:#fff;
}

/* 下線アニメ（背景が暗いので白線） */
nav ul li a::after{
content:"";
position:absolute;
left:0;
bottom:-6px;
height:2px;
width:0;
background:#fff;
transition: width .3s ease;
}
nav ul li a:hover::after{
width:100%;
}

/* アンカーで飛んだ時に見出しが隠れない */
section{ scroll-margin-top: 100px; }
html{ scroll-behavior: smooth; }

/* ===== レスポンシブ（幅980px以下） ===== */
@media (max-width: 980px){
body{ padding-top: 64px; } /* モバイルはヘッダー低め */
header{ padding: 12px 16px; }
.site-title h1{ font-size: 18px; letter-spacing: 2px; }
nav ul{ gap: 12px; }
nav ul li a{ font-size: 14px; }
nav ul li a span{ font-size: 11px; }
}

/* 極端に狭い時は英語サブを隠して崩れ防止（任意） */
@media (max-width: 420px){
nav ul li a span{ display:none; }
}

  .fv {
position: relative;
width: 100%;
height: 80vh; /* 画面の9割を占める高さ */
overflow: hidden;
}
@media (max-width:768px) 
 {
    .fv{
        height: 60vh;
    }
    .fv-text h1{
        font-size: 1.8rem;
    }
    .fv-text p{
        font-size: 1rem;
    }
   
}

/* 背景画像設定 */
.fv img {
width: 100%;
height: 100%;
object-fit: cover; /* 画像を切り抜いて全体にフィット */
filter: brightness(70%); /* 少し暗くしてテキストを見やすく */
}

/* テキストボックス */
.fv-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
text-align: center;
}

/* 見出し・説明文 */
.fv-text h1 {
font-size: 2.5rem;
letter-spacing: 1px;
margin-bottom: 1rem;
}

.fv-text p {
font-size: 1.2rem;
margin-bottom: 2rem;
}

/* ボタン */
.fv-text .btn {
display: inline-block;
background: #0F766E;
color: #fff;
padding: 0.8rem 2rem;
border-radius: 4px;
text-decoration: none;
transition: all  0.3s ease;
}

.fv-text .btn:hover {
background: #005f6a;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.services{
max-width: 1100px;
margin: 80px auto 60px;
margin-bottom: 60px;
color: #444;
text-align: center;

}

.service-item img {
    
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.service-item svg{
    fill:#1e4e5e ;
}

.services p{
    margin-bottom: 24px;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-list{
display: flex;
gap: 32px;
justify-content: center;
flex-wrap: wrap;
}

.service-item{
    flex: 1 ;
    min-width: 280px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
.service-item h3{
    color: #092837;
    text-align: center;
    margin-bottom: 10px;
}
.service-item p{
    color: #092e45;
    line-height: 1.6;
    text-align: center;
}
.service-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
}


.works {
max-width: 1100px;
margin: 100px auto;
text-align: center;
}

.works-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 32px;
}

.work-item {
flex: 1;
min-width: 300px;
max-width: 340px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
overflow: hidden;
transition: transform 0.3s ease;
}

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

.work-item img {
width: 100%;
height: auto;
}

.work-item h3 {
color: #092837;
margin: 16px 0 8px;
}

.work-item p {
color: #555;
font-size: 0.95rem;
margin-bottom: 16px;
}

.btn-demo {
display: inline-block;
background: #0F766E;
color: #fff;
padding: 0.6rem 1rem;
border-radius: 6px;
text-decoration: none;
font-size: 14px;
transition: 0.3s ;
margin-top: 10px;
}

.btn-demo:hover {
background: #095a51;
}



.pw {
display: block;
font-size: 13px;
color: #666;
margin-top: 6px;
}

.skills {
padding: 80px 20px;
background-color: #f9f9f9;
text-align: center;
}

.skills h2 {
font-size: 2.4rem;
margin-bottom: 10px;
}

.skills p {
color: #555;
margin-bottom: 40px;
}

.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
max-width: 1000px;
margin: 0 auto;
}

.skill-item {
background: white;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
padding: 30px;
transition: transform 0.2s ease;
}

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

.skill-item h3 {
color: #333;
margin-bottom: 10px;
}

.skill-item p {
color: #666;
font-size: 0.95rem;
}

.about {
padding: 100px 20px;
max-width: 1000px;
margin: 0 auto;
text-align: center;
}

.about h2{
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    color: #222;
}

@media (max-width:768px){
    .about h2{
        font-size: 2rem;
    }
    
}

.about-container {
display: flex;
align-items: center; /* ← 写真とテキストの縦位置を中央に */
justify-content: center;
gap: 50px;
margin-top: 60px;
flex-wrap: wrap;
text-align: left;
}

.about-image img {
width: 240px;
height: 240px;
border-radius: 10px;
object-fit: cover;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08); /* ← ほんのり影 */
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
transform: scale(1.03);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.about-text {
flex: 1;
min-width: 300px;
line-height: 1.9;
color: #444;
max-width: 600px; /* ← テキストが広がりすぎないように */
font-size: 1rem;
}

.about-skill {
margin-top: 25px;
font-weight: 600;
color: #333;
font-size: 1.05rem;
letter-spacing: 0.02em;
}

.about h2 {
font-size: 2.6rem;
font-weight: 700;
letter-spacing: 0.05em;
margin-bottom: 1.5rem;
color: #222;
text-align: center;
}




.blog-section{
background-color: #faf7f7;
padding: 60px 20px;
text-align: center;

}

.blog-section h2{
font-size: 28px;
margin-bottom: 40px;
color: #1e4e5e;
}

.blog-list{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-item{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    text-align: left;
}

.blog-item img{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;

}

.blog-item h3{
    font-size: 20px;
    margin-bottom: 10px;
    color: #1e4e5e;

}

.blog-item p{
    font-size: 14px;
    margin-bottom: 15px;
    color:#1e4e5e;
}

.blog-item a{
    display: inline-block;
    margin-top: 10px;
    color:#1e4e5e;
    font-weight: bold;
    text-decoration: none;

}

.contact {
padding: 80px 20px;
background: #f7f7f7;
}

.contact h2 {
text-align: center;
font-size: 2.2rem;
margin-bottom: 12px;
}

.contact-lead {
text-align: center;
color: #555;
margin-bottom: 36px;
}

.contact-inner {
max-width: 1100px;
margin: 0 auto;
display: flex;
gap: 32px;
align-items: stretch;
flex-wrap: wrap;
}

.contact-card {
flex: 1;
min-width: 300px;
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,.1);
padding: 24px;
box-sizing: border-box;
}

.contact-card h3 {
margin-top: 0;
margin-bottom: 16px;
color: #092837; /* 既存の見出し色に寄せる */
}

.contact-list {
list-style: none;
padding: 0;
margin: 0 0 16px;
}

.contact-list li + li { margin-top: 6px; }

.contact-form label {
display: block;
font-weight: 600;
margin: 12px 0 6px;
color: #333;
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 12px 14px;
font-size: 16px;
border: 1px solid #e5e5e5;
border-radius: 6px;
box-sizing: border-box;
background: #fff;
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: #0F766E; /* 既存ボタン色に合わせたアクセント */
box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}

/* ボタンは既存 .btn を流用。幅だけ調整（任意） */
.contact .btn {
display: inline-block;
margin-top: 14px;
}

.sns-links {
text-align: center;
margin: 60px 0 ;
}

.sns-links i{
margin: 0 10px;
font-size: 22px;
color: #444;
transition: color 0.3s ease;

}
.sns-links p {
font-weight: 600;
color: #333;
margin-bottom: 12px;
}

.sns-links ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}

.sns-links a {
display: inline-flex;
align-items: center;
gap: 5px;
color: #333;
margin: 0 10px;
text-decoration: none;
transition: color 0.3s ease;
}

.sns-links a:hover i{
color: #1da1f2;
}

.sns-links a::after {
content: "";
position: absolute;
width: 0%;
height: 1px;
bottom: -2px;
left: 0;
background-color: #1a73e8;
transition: width 0.3s ease;
}

.sns-links a:hover::after {
width: 100%;
}


.footer{
background-color: #1e4e5e;;
padding: 40px 0;
margin-top: 80px;

}
.footer ul{
    display: flex;
    justify-content: center ;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.footer ul li a{
    color: #fff;
    text-decoration: none;
}

.footer ul li a:hover{
    text-decoration: underline;

}

.footer p{
    color:#fff;
    text-align: center;
    font-size: 15px;
}

html{
    scroll-behavior: smooth;
}




/* ===== スマホ最適化（768px以下） ===== */
@media screen and (max-width: 768px) {

/* ヘッダーを縦並びにして中央寄せ */
header {
flex-direction: column;
align-items: center;
padding: 12px;
background: rgba(0, 0, 0, 0.85);
}

.site-title {
text-align: center;
margin-bottom: 8px;
}

.site-title h1 {
font-size: 18px;
letter-spacing: 2px;
}

.site-title p {
font-size: 12px;
}

/* ナビを縦並びに変更 */
nav ul {
flex-direction: column;
align-items: center;
gap: 10px;
}

nav ul li a {
font-size: 14px;
color: #fff;
}

nav ul li span {
display: none; /* 英語サブテキストを非表示 */
}

/* ファーストビュー内テキスト調整 */
.fv-text h1 {
font-size: 1.6rem;
}

.fv-text p {
font-size: 0.9rem;
}

/* ヘッダー高さ分の余白 */
body {
padding-top: 140px;
}
}


.menu-btn {
display: none;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
background: transparent;
border: none;
cursor: pointer;
z-index: 1100;
}

.menu-btn span {
display: block;
height: 2px;
background: #fff;
border-radius: 2px;
transition: all 0.3s ease;
}

/* 開いた時のアニメーション */
.menu-btn.active span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
opacity: 0;
}
.menu-btn.active span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}

/* ===== スマホ用メニュー制御 ===== */
@media screen and (max-width: 768px) {
.menu-btn {
display: flex;
position: absolute;
top: 20px;
right: 20px;
}

nav {
display: none;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, 0.9);
position: absolute;
top: 60px;
left: 0;
width: 100%;
padding: 20px 0;
z-index: 1000;
opacity: 0;
transform: translateY(-20px);
transition: all 0.4s ease;
}

nav.active {
display: flex;
opacity: 1;
transform: translateY(0);
}
}

.no-scroll {
overflow: hidden;
height: 100vh;
}