/* A Modern CSS Reset */
*,*::before,*::after{box-sizing:border-box;}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role="list"],ol[role="list"]{list-style:none}html:focus-within{scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.5}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}

/* ベーススタイル */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    line-height: 1.5;
}

main{
	margin: 0 auto;
	max-width: 804px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ヘッダー */
.header {
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 30px; /* ロゴの高さ調整 */
    width: auto;
}
@media (min-width: 804px) {
    .header-inner {
        max-width: 804px;
		margin: 0 auto;
    }
	.logo img {
    height: 45px;
	}
}

/* ハンバーガーメニューアイコン */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #5566aa; /* 青っぽい色 */
    position: absolute;
    left: 0;
    border-radius: 2px;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }

/* --- ハンバーガーメニューのスタイル --- */

/* ボタンのアニメーション */
.menu-btn.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.menu-btn.is-active span:nth-child(2) {
    opacity: 0; /* 真ん中の線を消す */
}
.menu-btn.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* メインナビゲーションの隠し状態 */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(34, 51, 119, 0.95); /* 濃い青の透過背景 */
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* メニューが開いた時 */
.nav-wrapper.is-active {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 15px 0;
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

/* お問い合わせボタン風 */
.nav-list li a.nav-btn {
    background-color: #fff;
    color: #223377;
    padding: 10px 30px;
    border-radius: 25px;
    margin-top: 10px;
    display: inline-block;
}

/* --- 閉じるボタンの追加スタイル --- */

.nav-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

/* ×印を作る2本の線 */
.nav-close-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff; /* 白い線 */
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 2px;
}

/* 1本目を45度回転 */
.nav-close-btn span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 2本目を-45度回転 */
.nav-close-btn span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}




/* メインビジュアル */
.hero img {
    width: 100%;
    object-fit: cover;
}

/* セクション共通 */
.section {
    padding: 30px 15px;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.title-deco {
    text-align: center;
    color: #7788cc;
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.bg_wh{
	background: #fff;
}

/* カード共通スタイル */
.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.card img {
    margin: 0 auto 10px;
    max-height: 100px;
    object-fit: contain;
}

.card p {
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0;
}

/* サービスメニュー（グリッドレイアウト） */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    gap: 10px;
    margin-bottom: 20px;
}
/* スマホサイズで2列にしたい場合 */
@media (max-width: 400px) {
    .grid-container.products_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTAボタン */
.cta-container {
    text-align: center;
    margin-top: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #333;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-outline:hover {
    background-color: #f9f9f9;
}

/* 選ばれる理由（フレックスレイアウト） */
.flex-wrap-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央寄せ */
    gap: 10px;
}

.reason-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* テキストを下揃え */
    padding: 0;
}

.reason-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    max-height: none;
}

.reason-card p {
    padding: 8px 4px;
    font-size: 0.7rem;
}

/* 上段3つ */
.reason-card.small {
    width: calc(33.333% - 7px); /* 3列 */
}

/* 下段2つ */
.reason-card.medium {
    width: calc(50% - 5px); /* 2列 */
}

/* おすすめコンテンツ（横スクロール） */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; /* スムーズスクロール */
}
.article-card {
    background: #fff;
    min-width: 85%;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    overflow: hidden;
	margin-left: 3px;
}
.article-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-content {
    padding: 10px 15px;
}
.article-content h3 {
    font-size: 0.95rem;
    margin: 0 0 5px;
}
.article-content p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}
@media (min-width: 480px) {
	.article-card {
		min-width: 420px;
	}
}

/* --- フッタースタイル --- */
.footer {
    background-color: #fff; /* 薄いグレーで清潔感を */
    padding: 30px 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin:0 auto 15px;
	width: 50%;
	max-width: 240px;
}

.footer-logo img {
    margin: 0 auto;
}

/* フッターリスト */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    gap: 15px;
}

.footer-nav-list li a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

/* お問い合わせリンクだけ少し強調 */
.footer-contact-link {
    color: #223377 !important;
    font-weight: bold !important;
}

/* 区切り線 */
.footer-hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #888;
}

/* タブレット・PCサイズでの調整（必要であれば） */
@media (min-width: 480px) {
    .footer-nav-list {
        flex-direction: row; /* 横並びにする */
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}


/* 下層ページ */
/* --- 共通コンテナ --- */
.container {
    padding: 0 20px;
}

/* --- 下層ページヒーロー --- */
.page-hero {
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.page-hero.service_flow{
	background-image: url("../img/flow_main.png");
}
.page-hero.products{
	background-image: url("../img/products_main.png");
}
.page-hero.about{
	background-image: url("../img/about_main.png");
}

.page-hero h2 {
    font-size: 1.8rem;
    margin: 0;
}

.page-hero p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* --- パンくずリスト --- */
.breadcrumb {
    background-color: #fff;
    padding: 10px 0;
    font-size: 0.75rem;
    color: #888;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
}

/* --- コンテンツエリア --- */
.content-body {
    background-color: #f2f2f2;
    padding: 40px 0;
}

/* --- ステップカード --- */
.step-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 背景の大きな数字 */
.step-num {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 5.5rem;
    font-weight: bold;
    font-style: italic;
    color: #e1e9ff; /* 薄い青 */
    z-index: 1;
    line-height: 1;
}

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

.step-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e9ff;
}

.step-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.step-note {
    font-weight: bold;
    margin-top: 10px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

/* --- CTAボタン調整 --- */
.btn-outline.big {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    font-size: 1rem;
    background-color: #fff;
}


/* フォーム、会社概要 */
/* --- フォームスタイル --- */
.form-intro {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 30px;
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.required {
    background: #e33;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* paddingを含めた幅に */
    font-size: 1rem;
}

.btn-submit {
    background-color: #223377;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #334488;
}

/* --- 会社概要テーブル --- */
.about-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.about-table th,
.about-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    text-align: left;
}

.about-table th {
    background-color: #f9faff;
    color: #223377;
    width: 30%;
    white-space: nowrap;
}

.business-list {
    margin: 0;
    padding-left: 20px;
}

.business-list li {
    margin-bottom: 5px;
}


/* サンクス */
/* --- サンクスページスタイル --- */
.thanks-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.thanks-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.thanks-title {
    font-size: 1.4rem;
    color: #223377;
    line-height: 1.4;
    margin-bottom: 30px;
}

.thanks-message {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.reply-info {
    background-color: #f9faff;
    border: 1px solid #e1e9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.reply-info p {
    margin: 0;
    color: #333;
}

.reply-info strong {
    color: #223377;
    font-size: 1.1rem;
}

.thanks-message .note {
    font-size: 0.8rem;
    color: #888;
    text-align: left;
}

/* ボタンを中央寄せにするための上書き */
.thanks-section .cta-container {
    margin-top: 30px;
}

.thanks-section .btn-outline {
    min-width: 200px;
}
