/* 全体の基本設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #474747;
}

/* ヘッダー全体のスタイル */
header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === ロゴのスタイル (画像 + テキスト版) === */
.logo a.logo-link-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a.logo-link-wrapper:hover {
    opacity: 0.8;
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 12px;
}

.logo-text-container {
    line-height: 1.1;
}

.logo-jp {
    font-family: 'Noto Sans JP', sans-serif; /* ★フォント変更 */
    font-weight: 700; /* 太字 */
    font-size: 1.6em;  /* ゴシック体に合わせて微調整 */
    color: #B00000;
    display: block;
    letter-spacing: 0.03em; /* 文字間を少し調整 */
    line-height: 1.3;
}

.logo-en {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.6em;
    color: #474747;
    display: block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
    line-height: 1.2;
}

/* グローバルナビゲーションのスタイル */
.global-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.global-nav li {
    margin-left: 25px;
}

.global-nav a {
    text-decoration: none;
    color: #474747;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.global-nav a:hover {
    color: #B00000;
    text-decoration: none;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B00000;
    transition: width 0.3s ease-in-out;
}

.global-nav a:hover::after {
    width: 100%;
}

/* メインコンテンツエリアのスタイル */
main {
    /* `main` タグの直接のスタイルは、各ページのセクションで制御するため、ここでは一旦リセット */
    /* 必要であれば、サイト全体の `main` のスタイルをここに記述 */
}

/* セクションタイトル (h2) のスタイル */
h2 {
    color: #474747;
    font-size: 1.8em; /* 少し大きめに調整 */
    border-bottom: 2px solid #B00000;
    padding-bottom: 0.4em;
    margin-top: 0; 
    margin-bottom: 30px; /* 余白を調整 */
    text-align: center; /* 基本を中央揃えに */
}

/* 汎用リンクのスタイル */
a {
    color: #B00000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #8c0000;
}

/* --- トップページ ヒーローセクションのスタイル --- */
.hero {
    background-color: #fff;
    padding: 70px 20px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero .main-catchphrase {
    font-size: 2.3em;
    color: #474747;
    font-weight: bold;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: none; /* ヒーロー内のh2には下線不要 */
}

.hero .sub-catchphrase {
    font-size: 1.1em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- トップページ 各セクション共通スタイル --- */
.home-section {
    padding: 60px 20px;
}
/* 交互に背景色を変える */
.home-section:nth-of-type(odd) {
    background-color: #fff;
}
.home-section:nth-of-type(even) {
    background-color: #f9f9f9;
}


.section-container {
    max-width: 720px;
    margin: 0 auto;
}

/* --- トップページ 使命(Mission)セクション --- */
#mission .mission-text {
    font-size: 1.1em;
    line-height: 1.9;
    text-align: center;
}

#mission .mission-text strong {
    font-size: 1.5em;
    display: block;
    margin-bottom: 0.5em;
    color: #474747;
    font-family: 'Noto Sans JP', sans-serif; /* ★フォント変更 */
    font-weight: 700; /* 太字指定を追加 */
}

/* --- トップページ 事業内容(Businesses)セクション --- */
.business-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
}
.business-item:last-child {
    margin-bottom: 0;
}

.business-item h3 {
    font-size: 1.5em;
    color: #B00000;
    margin-top: 0;
    margin-bottom: 5px;
    font-family: 'Noto Sans JP', sans-serif; /* ★フォント変更 */
    font-weight: 700; /* 太字指定を追加 */
}

.business-item .business-catchphrase {
    font-weight: bold;
    color: #474747;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.business-item p {
    line-height: 1.8;
    margin-bottom: 0;
}

/* --- トップページ お知らせセクション --- */
#home-news .news-list-home {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 35px;
}

#home-news .news-list-home li {
    padding: 15px 0;
    border-bottom: 1px dashed #d0d0d0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

#home-news .news-list-home .news-date {
    font-size: 0.9em;
    color: #555;
    margin-right: 20px;
    min-width: 90px;
    font-weight: 500;
}

#home-news .news-list-home a {
    color: #474747;
    text-decoration: none;
    flex-grow: 1;
}

#home-news .news-list-home a:hover {
    color: #B00000;
    text-decoration: underline;
}

/* --- 各セクションの「もっと見る」系ボタンの段落スタイル --- */
.read-more-button {
    text-align: center;
    margin-top: 40px;
}


/* --- 汎用ボタンスタイル --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #B00000;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background-color: #8c0000;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 2px solid #6c757d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* --- 下層ページ共通スタイル --- */
.page-section {
    padding: 40px 0; /* 左右の余白はsection-containerで制御 */
}
.page-section .section-container { /* 下層ページ用コンテナ */
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}


.page-section .section-intro {
    text-align: left;
    margin-bottom: 40px;
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
}

/* --- 会社概要ページ（about.html）のスタイル --- */
#company-profile-list {
    border: 1px solid #eaeaea;
    margin-top: 20px;
}

.profile-item {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    padding: 0;
}

.profile-item:last-child {
    border-bottom: none;
}

#company-profile-list dt {
    font-weight: bold;
    background-color: #f9f9f9;
    width: 170px;
    padding: 15px 12px;
    box-sizing: border-box;
    flex-shrink: 0;
    border-right: 1px solid #eaeaea;
}

#company-profile-list dd {
    padding: 15px 12px;
    flex-grow: 1;
    box-sizing: border-box;
    margin-left: 0;
}

#company-profile-list dd ul {
    list-style-type: square;
    margin: 0;
    padding-left: 20px;
}

#company-profile-list dd ul li {
    margin-bottom: 5px;
}
#company-profile-list dd ul li:last-child {
    margin-bottom: 0;
}

/* --- 事業内容ページ（services.html）の個別スタイル --- */
.service-details-container {
    margin-top: 30px;
}

.service-detail-item {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.service-detail-item h3 {
    font-size: 1.4em;
    color: #B00000;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.service-detail-item p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 10px;
}
.service-detail-item p:last-child {
    margin-bottom: 0;
}

/* --- お問い合わせページ（contact.html）のスタイル --- */
.contact-info {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 5px;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #474747;
}

.contact-info p {
    margin-bottom: 8px;
    line-height: 1.7;
}
.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #474747;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #474747;
}

.form-group label .required {
    color: #B00000;
    font-size: 0.9em;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: #B00000;
    box-shadow: 0 0 0 2px rgba(176, 0, 0, 0.15);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- プライバシーポリシーページ（privacy.html）の固有スタイル --- */
#privacy-policy-main h3 {
    font-size: 1.3em;
    color: #474747;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

#privacy-policy-main ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 15px;
}

#privacy-policy-main ul li {
    margin-bottom: 5px;
}

/* --- サイトマップページ（sitemap.html）のスタイル --- */
.sitemap-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.sitemap-list li {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.sitemap-list li a {
    text-decoration: none;
    color: #474747;
    padding: 5px 0;
    display: inline-block;
}

.sitemap-list li a:hover {
    color: #B00000;
    text-decoration: underline;
}

/* --- お知らせ一覧ページ（news.html）のスタイル --- */
.news-archive {
    margin-top: 30px;
}

.news-article-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

.news-date-page {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 5px;
}

.news-title-page { /* h3タグを使用 */
    font-size: 1.3em;
    color: #474747;
    margin-top: 0;
    margin-bottom: 10px;
}

.news-content-page p {
    font-size: 1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.5em;
}
.news-content-page p:last-child {
    margin-bottom: 0;
}

/* --- フッター全体のスタイル --- */
footer {
    background-color: #fff;
    border-top: 1px solid #eaeaea;
    font-size: 0.85em;
    color: #555;
    margin-top: 50px;
    padding: 30px 15px;
    text-align: center;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    margin-bottom: 10px;
}

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

.footer-nav li {
    display: inline-block;
    margin: 0 10px;
}

.footer-nav a {
    text-decoration: none;
    color: #474747;
}

.footer-nav a:hover {
    color: #B00000;
    text-decoration: underline;
}

/* Utility classes */
.text-center {
    text-align: center;
}

/* --- 会社概要ページ 代表挨拶 --- */
.message-from-ceo {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}
.message-from-ceo h3 {
    font-size: 1.4em;
    color: #474747;
    text-align: center;
    margin-bottom: 20px;
}
.message-from-ceo .ceo-name {
    margin-top: 20px;
    text-align: right;
    line-height: 1.6;
}