/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Teko:wght@500;700&display=swap');

/* 全体設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #555;
    background-color: #f4f8fa;
    margin: 0;
}

a {
    color: #007BFF;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* ヘッダー */
header {
    background: #fff;
    padding: 15px 40px;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    height: 50px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    color: #333;
    line-height: 1.4;
}

.company-name {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.phone-number {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #007BFF;
    margin: 0;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 35px;
}

header nav a {
    color: #333;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}

header nav a:hover {
    color: #007BFF;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-social-links a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.header-social-links a:hover {
    color: #007BFF;
}

.header-social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.blog-link {
    font-weight: 500;
    font-size: 18px;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* メインコンテンツ */
main {
    padding: 0;
}

section {
    padding: 80px 40px;
    border-bottom: 1px solid #e0e6ed;
}

section:nth-child(odd) {
    background-color: #fff;
}

section:last-child {
    border-bottom: none;
}

section h3 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 38px;
    color: #333;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ヒーローセクション */
#hero {
    text-align: center;
    color: #fff;
    padding: 120px 20px;
    position: relative;
    background-image: url("youtube_header_20241007.png");
    background-size: cover;
    background-position: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.7), rgba(0, 43, 89, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#hero h2 {
    font-family: 'Teko', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
}

#hero p {
    font-size: 18px;
    font-weight: 400;
}



/* YouTubeセクション */
#latest-video-container {
    max-width: 960px;
    margin: 0 auto;
}

.video-link {
    display: block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-link img {
    width: 100%;
    display: block;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 40px 20px 20px;
    text-align: left;
}

.video-title p {
    margin: 0;
    font-size: 22px;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* サービスセクション */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* three in a row on desktop */
    gap: 40px;
}


/* --- News section highlight --- */
#news {
    background: linear-gradient(135deg, #fff7e0 0%, #ffe5b4 100%); /* subtle gradient */
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 0 auto;
    max-width: 900px;
}
#news h3 {
    font-size: 32px;
    font-family: 'Teko', sans-serif;
    color: #ff6f00;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-left: 60px;
}
#news h3::before {
    content: "\f0a1"; /* FontAwesome bullhorn icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: #ff6f00;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 500;
}
.news-list li:last-child {
    border-bottom: none;
}

/* --- Affiliation highlight --- */
dl dd strong {
    font-weight: 700;
    color: #000;
}

.service-item {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.service-item h4 {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    color: #007BFF;
    margin: 20px 0 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.service-item ul {
    color: #555;
    padding: 0 20px 30px;
    list-style-position: inside;
    text-align: left;
}

/* 実績セクション */
#achievements {
    background-color: #fff;
}

.achievements-table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto; /* For responsiveness on small screens */
}

#achievements table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

#achievements th, #achievements td {
    padding: 20px;
    text-align: left;
    border: none; /* Remove grid lines */
}

#achievements thead {
    border-bottom: 3px solid #007BFF; /* Strong header border */
}

#achievements thead th {
    background-color: #fff;
    font-weight: 700;
    color: #333;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#achievements tbody tr {
    border-bottom: 1px solid #e0e6ed; /* Horizontal lines for rows */
}

#achievements tbody tr:last-child {
    border-bottom: none;
}

#achievements tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

#achievements tbody tr:hover {
    background-color: #f0f4f8;
}


/* 料金プランセクション */
#pricing {
    background-color: #f4f8fa; /* Changed background to stand out */
}

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

.pricing-card {
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.pricing-card h4 {
    font-family: 'Teko', sans-serif;
    font-size: 28px;
    color: #007BFF;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.service-description {
    color: #555;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 30px;
    padding-left: 20px;
    flex-grow: 1;
    color: #555;
}

.price {
    margin-bottom: 30px;
}

.price p {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    font-family: 'Teko', sans-serif;
    margin: 0;
}

.btn {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    color: #fff; /* Ensure text color stays white on hover */
}


/* disabled-like button */
.btn[aria-disabled="true"]{
  pointer-events: none;
  opacity: .6;
  cursor: default;
}

/* 強みセクション */
.features-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-image {
    flex: 0 0 250px;
}

.profile-image img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.profile-text {
    flex: 1;
}

/* 会社概要セクション */
dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

dt {
    font-weight: bold;
    color: #007BFF;
}

/* アクセスセクション */
#access {
    background-color: #fff;
}

.map-container {
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.access-info {
    text-align: center;
    font-size: 18px;
}

/* お問い合わせセクション */
form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 25px;
}

form label {
    display: grid;
    gap: 8px;
    color: #333;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

form button {
    background: #007BFF;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* フッター */
footer {
    background: #fff;
    color: #555;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e0e6ed;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.social-links a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007BFF;
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* YouTube icon color override */
.header-social-links a.youtube-link,
.social-links a.youtube-link {
    color: #FF0000;
}

.header-social-links a.youtube-link:hover,
.social-links a.youtube-link:hover {
    color: #d60000; /* Darker Red on hover */
}

/* --- Equipment split tables --- */
#equipment .equip-split {
  display: grid;
  gap: 24px;
}
#equipment .equip-block h4 {
  margin: 8px 0 12px;
  font-size: 20px;
  font-weight: 700;
}
@media (min-width: 900px) {
  #equipment .equip-split {
    grid-template-columns: 1fr 1fr;
  }
}
/* 表の見た目は実績テーブルと同等 */
#equipment table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
#equipment th, #equipment td {
  padding: 16px 20px;
  text-align: left;
}
#equipment thead th {
  background-color: #f5f7fb;
  font-weight: 700;
  color: #333;
  letter-spacing: .5px;
  text-transform: none;
}
#equipment tbody tr {
  border-bottom: 1px solid #e0e6ed;
}
#equipment tbody tr:last-child {
  border-bottom: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        position: static; /* unfix header on mobile */
        box-shadow: none;
    }

    header nav ul {
        text-align: center;
        margin-top: 15px;
    }

    header nav ul li {
        margin: 0 10px;
    }

    #hero h2 {
        font-size: 42px;
    }

    .features-content {
        flex-direction: column;
        text-align: center;
    }

    dl {
        grid-template-columns: 1fr;
    }

    /* --- Company info (会社概要) tweaks --- */
    dl dt,
    dl dd {
        grid-column: 1 / -1; /* Stack definition list items vertically */
    }
    dl dt {
        margin-top: 15px; /* spacing between rows */
    }

    /* --- Left-align sections and headings --- */
    section {
        padding: 60px 20px;
    }
    section h3 {
        text-align: left;
        margin-left: 0;
    }
    .service-grid,
    .pricing-grid,
    .features-content {
        margin-left: 0;
        max-width: 100%;
        justify-items: start;
    }
    .achievements-table-container {
        margin-left: 0;
        padding: 0;
    }
    form {
        margin-left: 0;
        width: 100%;
    }

    /* --- Achievements table (実績【抜粋】) tweaks --- */
    #achievements table {
        table-layout: fixed; /* make columns shrink to fit */
        width: 100%;
    }
    #achievements table th,
    #achievements table td {
        font-size: 11px;
        padding: 4px;
        white-space: normal;
        word-break: break-word;
    }
    /* set individual column max widths */
    #achievements th:nth-child(1),
    #achievements td:nth-child(1) { /* 年度 */
        width: 58px;
    }
    #achievements th:nth-child(2),
    #achievements td:nth-child(2) { /* 都道府県 */
        width: 70px;
    }
    #achievements th:nth-child(3),
    #achievements td:nth-child(3) { /* 発注者 */
        width: 60px;
    }
    #achievements th:nth-child(4),
    #achievements td:nth-child(4) { /* 工事種類 */
        width: 80px;
    }
    #achievements th:nth-child(5),
    #achievements td:nth-child(5) { /* 工事規模 */
        width: 80px;
    }
    #achievements th:nth-child(6),
    #achievements td:nth-child(6) { /* ICT */
        width: 70px;
    }
}

/* --- Equipment section styles --- */
#equipment .equip-2col {
    display: grid;
    gap: 16px;
}
@media (min-width: 1024px) {
    #equipment .equip-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1023px) {
    #equipment .equip-2col {
        grid-template-columns: 1fr;
    }
}

#equipment .equip-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
#equipment .equip-table th,
#equipment .equip-table td {
    border: 1px solid #ccc;
    padding: 6px;
    font-size: 12px;
    word-break: break-word;
    white-space: normal;
}
#equipment .equip-table th {
    background: #f2f2f2;
}
#equipment .equip-table th:nth-child(1),
#equipment .equip-table td:nth-child(1) {
    width: 38%;
}
#equipment .equip-table th:nth-child(2),
#equipment .equip-table td:nth-child(2) {
    width: 32%;
}
#equipment .equip-table th:nth-child(3),
#equipment .equip-table td:nth-child(3) {
    width: 30%;
}

/* --- AI note (contact footer message) --- */
#contact .ai-note{
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
  color: #2563eb;        /* 既存のブランド系ブルーに合わせた色 */
}
@media (max-width: 720px){
  #contact .ai-note{ font-size: 0.95rem; }
}
/* --- Additional nav AI note --- */
.header-right nav .ai-note-nav{
  margin-left: 12px;
  color:#2563eb;
  font-weight:700;
  font-size: 0.9rem;
  list-style: none; /* override default */
}
@media (max-width: 768px){
  .header-right nav .ai-note-nav{display:none;} /* hide on small screens to keep nav clean */
}
/* --- /AI note --- */


/* --- emphasize main plan price --- */
.price-big{
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: .02em;
}
