@charset "UTF-8";

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: #333;
    font-family: 'Helvetica Neue', sans-serif;
}

img {
    width: 100%;
}

h2,h3,h4,h5,h6 {
    margin: 0;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

.btn {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 1rem;
}

.site-header {
    background-color: #002C60;
    color: #fff;
    padding: 1rem 0;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 280px;
    padding: 0 32px;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0;
    padding: 0 32px;
    list-style: none;
}

.main-nav li {
    margin-left: 1rem;
}

.footer-block a,
.main-nav a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-block a:not(.btn)::after,
.main-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 1rem; /* ← padding-leftと同じにする */
    bottom: 0.2rem;
    width: calc(100% - 2rem); /* ← padding-left + padding-right を引く */
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.footer-block a:not(.btn):hover::after,
.main-nav a:not(.btn):hover::after {
    transform: scaleX(1);
}

.main-nav .btn-contact {
    border: 2px solid #fff;
    background-color: #fff;
    color: #002C60;
}

.main-nav .btn-contact:hover {
    background-color: #002C60;
    color: #fff;
}

/* =====================
 ヒーロー
 ===================== */
.hero-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay a {
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.hero-overlay .btn-download {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
}

.hero-overlay .btn-download:hover {
    background-color: #002C60;
    border-radius: 8px;
}

/* =====================
 代表あいさつ
 ===================== */
.intro-block {
    background: url('img/background-white.jpg') fixed no-repeat center center / cover;
    text-align: center;
}

.intro-block h2 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.intro-block p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn-primary {
    display: inline-block;
    border: 2px solid #fff;
    background-color: #003366;
    color: #fff;
}

.btn-primary:hover {
    border: 2px solid #002C60;
    background-color: #fff;
    color: #002C60;
}

/* =====================
 サービス
 ===================== */
.service-block {
    background: url('img/background-blue.jpg') fixed no-repeat center center / cover;
    color: #fff;
}

.section-title {
    margin-bottom: 2rem;
    text-align: center;
}

.service-content {
    position: relative;
    display: flex;
    gap: 4rem;
    padding: 3rem 2rem;
    border: 1px solid #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(255, 255, 255, .6);
}

.service-image {
    max-width: 480px;
    height: auto;
    flex-shrink: 0;
}

.service-image img {
    position: sticky;
    top: 2rem; /* ← スクロール時に画面上部に固定する位置 */
    display: block;
    width: 100%;
    height: auto;
}

.service-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
}

/*ボタンを右寄せにするためにflexを適用*/
.service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.service-item:not(:last-child) {
    padding-bottom: 32px;
    border-bottom: 1px solid #fff;
}

.service-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.service-item h3 span {
    font-size: 1.2rem;
}

.service-item p {
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.service-item a {
    display: inline-block;
    margin-left: auto;
    padding: 0.5rem 1.75rem;
    border: 1px solid #fff;
    background-color: #fff;
    color: #002C60;
    font-size: 0.9rem;
}

.service-item a:hover {
    border: 1px solid #fff;
    background-color: #002C60;
    color: #fff;
}

/* =====================
 アスタが提供できること
 ===================== */

.provide-section {
    background: url('img/background-white.jpg') fixed no-repeat center center / cover;
    text-align: center;
}

.provide-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.provide-description {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.provide-section img {
    max-width: 640px;
}

/* =====================
 私達について
 ===================== */
.about-section {
    background: url('img/background-blue.jpg') fixed no-repeat center center / cover;
    color: #fff;
}

.about-section .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.about-text {
    flex: 1;
    font-size: 0.9rem;
}

.about-text h2 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    max-width: 480px;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid #fff;
    background-color: #fff;
    color: #003366;
}

.btn-secondary:hover {
    border: 1px solid #fff;
    background-color: #002C60;
    color: #fff;
}

/* =====================
 実績・導入事例
 ===================== */
.works-section {
    background: url('img/background-white.jpg') fixed no-repeat center center / cover;
    text-align: center;
}

.works-title {
    font-weight: bold;
    margin-bottom: 2rem;
}

.works-subtitle {
    text-align: left;
    margin: 2rem 0 1rem;
}

.works-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
}

.works-card {
    background: #eee;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    flex: 4;
    flex-shrink: 0;
}

.works-card p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.works-card a {
    color: #333;
    font-size: 0.75rem;
    text-decoration: underline;
}

.carousel-prev, .carousel-next {
    background: none;
    border: none;
    color: #AAA;
    font-size: 1.5rem;
    cursor: pointer;
    align-self: center;
}

/* =====================
 お客様の声
 ===================== */
.voice-section {
    background: url('img/background-blue.jpg') fixed no-repeat center center / cover;
    color: #fff;
    text-align: center;
}

.voice-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.voice-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.voice-carousel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 1200px;
    overflow-x: hidden;
}

.voice-card {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    overflow-x: hidden;
    width: 640px;
    padding: 2rem 1rem;
    background: #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: #333;
    text-align: left;
}

.voice-img {
    max-width: 150px;
    background: #ccc;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-explanation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.voice-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.voice-card p {
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.voice-card a {
    display: inline-block;
    margin-left: auto;
    padding: 0.5rem 1.75rem;
    border: 1px solid #002C60;
    background-color: #002C60;
    color: #fff;
    font-size: 0.9rem;
}

.voice-card a:hover {
    border: 1px solid #002C60;
    background-color: #fff;
    color: #002C60;
}

/* =====================
 新着記事
 ===================== */
.news-section {
    background: #fff;
    text-align: center;
}

.news-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.news-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.news-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.news-list a {
    color: #333;
    text-decoration: none;
}

.news-card {
    width: 240px;
    text-align: left;
}

.news-category {
    display: inline-block;
    border: 1px solid #000;
    border-radius: 9999px;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.news-caption {
    font-size: 0.85rem;
}

/* =====================
 お知らせ
 ===================== */
.newsinfo-section {
    background: #fff;
    text-align: center;
}

.newsinfo-title {
    font-weight: bold;
    margin-bottom: 2rem;
}

.newsinfo-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
}

.newsinfo-list li {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ccc;
    font-size: 0.9rem;
}

.newsinfo-date {
    font-weight: bold;
    white-space: nowrap;
    width: 60px;
}

.newsinfo-text {
    flex: 1;
}

/* =====================
 フッター お問い合わせ
 ===================== */
.footer-contact {
    background-color: #002C60;
    color: #fff;
    text-align: center;
}

.footer-contact-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-contact-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
}

.btn-submit {
    display: block;
    margin: auto;
    padding: 0.5rem 3rem;
    border: 1px solid #fff;
    border-radius: 8px;
    background-color: #fff;
    color: #002C60;
    font-weight: bold;
    transition: 0.2s;
    cursor: pointer;
}

.btn-submit:hover {
    border: 1px solid #fff;
    background-color: #002C60;
    color: #fff;
}

/* =====================
 フッター
 ===================== */
.site-footer {
    padding: 2rem 1rem 1rem;
    background-color: #002C60;
    color: #fff;
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-image {
    margin-right: 4rem;
}

.footer-text {
    margin-right: 1rem;
}

.footer-logo {
    max-width: 280px;
}

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

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

.footer-block a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.footer-list li:nth-child(n+2) {
    margin-left: 1rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.75rem;
}
