/*
 * Global Stylesheet for Satsuki Denki Shokai static site
 *
 * The design uses a modern palette of blues to evoke trust and
 * reliability associated with electrical engineering. Layouts use
 * responsive grids so that the site adapts gracefully from
 * smartphones to desktops. Animations are triggered via an
 * IntersectionObserver in script.js to fade in content as it enters
 * the viewport. A simple mobile menu is implemented to keep the
 * navigation accessible on small screens.
 */

:root {
  --primary-color: #003366;        /* dark blue for headings and footer */
  --primary-color2: #207cd7;
  --secondary-color: #007acc;      /* accent blue for buttons and highlights */
  --background-color: #f9fbfc;     /* very light grey for page background */
  --text-color: #222;              /* default body text colour */
  --max-width: 1200px;             /* maximum content width */
  --max-width2: 800px;
  --transition-duration: 0.3s;     /* default transition duration */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  scroll-behavior: smooth;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  color: #005fa3;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e0e5ec;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.3rem 0;
  transition: color var(--transition-duration) ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero section */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: center;
  padding: 73px 1rem;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
}
.hero.hero1 {
  min-height: 450px;
}
.hero.hero2 {
  min-height: 350px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  margin-bottom: 2rem;
  color: #e0e6f0;
}
/* PC **/
@media screen and (min-width: 769px) {
	.hero h1 {
		font-size: 40px;
	}
	.hero p {
		font-size: 20px;
	}
}
/* スマホ **/
@media screen and (max-width: 768px) {
	.hero h1 {
		font-size: 24px;
	}
	.hero p {
		font-size: 15px;
	}
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.8rem 2rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background var(--transition-duration) ease;
}

.cta-button:hover {
  background: #005fa3;
  color: #ffffff !important;
}

/* Generic section styling */
.section {
  padding: 4rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section2 {
  padding: 4rem 1rem;
  max-width: var(--max-width2);
  margin: 0 auto;
}

.section h2,
.section2 h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

.section h3,
.section2 h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--primary-color2);
  text-align: center;
}

.section p.lead {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
}

/* Cards and grids */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* List styling for strengths */
/*
.list {
list-style: none;
padding-left: 0;
margin-top: 1rem;
}
*/
.list {
    text-align: left;
    display: inline-block;
    list-style: none;
    padding: 10px 0 0 0;
}
.list li {
	margin-bottom: 0.8rem;
	font-size: 0.95rem;
	color: #444;
}

.list li::before {
  content: "✔";
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(0.1rem);
}

/* FAQ accordion */
.faq-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e5ec;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item button .icon {
  transition: transform var(--transition-duration) ease;
}

.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-duration) ease;
  padding: 0 1rem;
}

.faq-item.active .answer {
  max-height: 500px;
  padding-bottom: 1rem;
}

.faq-item.active button .icon {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 2rem 1rem;
}

.footer .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer .footer-col {
  flex: 1 1 200px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #f1f5f9;
}
.footer .company_list{
}
.footer .company_list .list1{
}
.footer .company_list .list2{
	font-weight:bold;
}
.footer .company_list .list3{
	padding: 0 0 0 42px;
}
.footer .company_list .list4{
}
.footer .company_list .list5{
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #cdd8e3;
  font-size: 0.9rem;
  transition: color var(--transition-duration) ease;
}

.footer ul li a:hover {
  color: #fff;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
    width: 200px;
  }
  nav.active ul {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}



.section2 .videolist {
  text-align:center;
}
.section2 .videolist:not(:last-child) {
  margin:0 auto 50px auto;
}
.section2 .videolist:last-child {
  margin:0 auto;
}

.section2 .videolist video{
  width: 100%;
  height: auto;
  display: block;
}

.section2 .videolist audio {
  width: 100%;
  display: block;
}

.link_button a{
	background-color:#00008b;
	text-align:center;
	display:block;
	width:95%;
    color: #ffffff;
    padding: 15px 0;
    font-size: 18px;
}
/****************************/
/* 施工事例 */
/****************************/
.sekou_jirei_list{
	display: flex;
	flex-wrap: wrap;                /* 折り返し */
	gap: 16px;                      /* 余白（行・列両方） */
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: flex-start;    /* 左寄せ（最後の行がスカスカでも左詰め） */
}
.sekou_jirei_list > li{
	box-sizing: border-box;
	flex: 0 1 calc((100% - 16px*2) / 3); /* 3列。gap×2 を引いて3等分 */
	/* 見た目用 */
	background-color:#fff;
}
.sekou_jirei_list > li.li_link{
}
.sekou_jirei_list > li:not(.li_link){
	border: 1px solid #ddd; 
	padding: 12px; 
	border-radius: 8px;
}
.sekou_jirei_list > li.li_link > a{
	border: 1px solid #ddd; 
	border-radius: 8px;
	padding: 12px; 
	font-weight:bold;
	display:block;
    color: #000000;
}
.sekou_jirei_list > li.li_link > a:hover{
	background-color:#000;
	color:#fff;
}

/* レイアウト */
.sekou_jirei_detail_list{
	display:flex;
	flex-wrap:wrap;
	gap:16px;                 /* 行・列の間隔 */
	list-style:none;
    margin: 0 0 30px 0;
	padding:0;
}
.sekou_jirei_detail_list > li{
	flex: 0 1 calc((100% - 16px * 2) / 3); /* 3列 */
	box-sizing:border-box;
}
@media (max-width: 900px){
	.sekou_jirei_detail_list > li{ f
		lex-basis: calc((100% - 16px) / 2); 
	} /* 2列 */
}
@media (max-width: 560px){
	.sekou_jirei_detail_list > li{ 
		flex-basis: 100%; 
	} /* 1列 */
}

/* カード風＋画像比率制御 */
.sekou_jirei_detail_list a{
	display:block;
	border:1px solid #e5e7eb; 
	border-radius:10px;
	overflow:hidden; 
	background:#fff; 
	text-decoration:none; 
	color:#111;
	transition:transform .15s ease, box-shadow .15s ease;
}
.sekou_jirei_detail_list a:hover{ 
	transform:translateY(-2px); 
	box-shadow:0 6px 18px rgba(0,0,0,.08);
}

/* 画像のアスペクト比を一定に（16:9例） */
.sekou_jirei_detail_list img{
	display:block; width:100%; height:auto;
	aspect-ratio: 16 / 9;     /* 近代ブラウザ */
	object-fit: cover;         /* はみ出す分はトリミング */
}

/* キャプション */
.sekou_jirei_detail_list .cap{
	display:block; 
	padding:10px 12px;
	font-size:14px; 
	line-height:1.5;
	border-top:1px solid #f1f5f9;
}
/* 拡大時 */
.sekou_jirei_detail_list .cap.is-zoom {
	font-size:18px; 
	line-height:1.7;
}
/* ◆ text-align ====================================== */
.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}

/* ◆ インスタグラム====================================== */
.sns_link1{
	margin:10px 0 0 0;
}
.insta_btn {
  display: inline-block;
  text-align: center;/*中央揃え*/
  color: #2e6ca5;/*文字色*/
  font-size: 20px;/*文字サイズ*/
  text-decoration: none;/*下線消す*/
}

.insta_btn:hover {/*ホバー時*/
  color:#668ad8;/*文字色*/
  transition: .5s;/*ゆっくり変化*/
}

.insta_btn .insta{/*アイコンの背景*/
  position: relative;/*相対配置*/
  display: inline-block;
  width: 50px;/*幅*/
  height: 50px;/*高さ*/
  background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
  background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;/*グラデーション①*/
  overflow: hidden;/*はみ出た部分を隠す*/
  border-radius: 13px;/*角丸に*/

}

.insta_btn .insta:before{/*グラデーションを重ねるため*/
  content: '';
  position: absolute;/*絶対配置*/
  top: 23px;/*ずらす*/
  left: -18px;/*ずらす*/
  width: 60px;/*グラデーションカバーの幅*/
  height: 60px;/*グラデーションカバーの高さ*/
  background: -webkit-radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);
  background: radial-gradient(#ffdb2c 10%, rgba(255, 105, 34, 0.65) 55%, rgba(255, 88, 96, 0) 70%);/*グラデーション②*/
}

.insta_btn .fa-instagram {/*アイコン*/
  color: #FFF;/*白に*/
  position: relative;/*z-indexを使うため*/
  z-index: 2;/*グラデーションより前に*/
  font-size: 35px;/*アイコンサイズ*/
  line-height: 50px;/*高さと合わせる*/
}