@charset "UTF-8";
@import url("grid.css");

/* ==========================================================================
   基本設定
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
}

a {
    display: block;
    color: #333;
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: #999;
}

/* ==========================================================================
   共通コンポーネント
   ========================================================================== */

/* 汎用見出し：下線付き */
.simple-h2 {
    display: block;
    width: 100%;
    font-size: 24px;
    padding-bottom: 8px;
    margin-bottom: 15px;
    border-bottom: 3px solid #FFCC00;
    text-align: center;
}

/* 背景色付き見出し */
.blueback {
    background-color: #FFCC00;
    color: #333;
    padding: 1rem;
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* 左アクセント線 */
.boarderleft {
    padding-left: 7px;
    border-left: 10px solid #FFCC00;
}

/* テキスト中央寄せ */
.center-text {
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
header {
    background-color: #fff;
}

.head {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo-group img {
    width: 80px;
}

.company-name {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
    margin-left: 15px;
    white-space: nowrap;
}

.telbox {
    margin-left: auto;
    text-align: right;
    font-size: 20px;
    line-height: 1.6;
}

.small {
    font-size: 14px;
    display: inline-block;
    margin-bottom: 5px;
}

/* ==========================================================================
   ナビゲーション
   ========================================================================== */
.menu {
    background-color: #FFCC00;
    border-bottom: 2px solid #E6B800;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
}

nav li {
    flex: 1;
}

nav li a {
    padding: 1rem 0.5rem;
    font-weight: bold;
    text-align: center;
}

nav li a:hover {
    background-color: #FFDB4D;
}

.nav-translation {
    display: block;
    font-size: 10px;
    font-weight: normal;
    color: #555;
}

/* ==========================================================================
   メインビジュアル (index.html)
   ========================================================================== */
.mainimg {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mainimg img {
    width: 100%;
    display: block;
}

.catchphrase-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.catchphrase-container h1 {
    color: #fff;
    font-size: clamp(1.2rem, 5vw, 2.8rem);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.5rem;
    margin-bottom: 15px;
    white-space: nowrap;
    border-left: 8px solid #FFCC00;
    letter-spacing: 0.05em;
}

/* キャッチコピーの段差表現 */
.line-1 { transform: translateX(-15%); }
.line-2 { transform: translateX(0); }
.line-3 { transform: translateX(15%); }

/* ==========================================================================
   コンテンツレイアウト (下層ページ共通)
   ========================================================================== */

/* トップページ以外のmain幅設定 */
body:not(:has(.mainimg)) main {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto 80px;
}

/* ご挨拶テキスト */
.greeting-text {
    line-height: 2.2;
    margin-bottom: 40px;
    color: #444;
}

/* 会社概要：フレックスレイアウト */
.profile-flex {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.profile-table-wrap {
    flex: 0 1 65%;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th, 
.profile-table td {
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.profile-table th {
    width: 180px;
    background-color: #fcfcfc;
    border-left: 4px solid #FFCC00;
}

/* 写真エリア */
.photo-wrap {
    flex: 0 1 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-photo {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.copyright {
    text-align: center;
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

#pagetop a {
    background: #FFCC00;
    color: #333;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    padding: 10px 5px;
    text-align: center;
    font-size: 12px;
    border-radius: 4px;
    z-index: 100;
}

/* ==========================================================================
   レスポンシブ (768px以下)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .head {
        flex-direction: column;
        padding: 1rem 0;
    }

    .telbox {
        margin: 15px 0 0;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    .catchphrase-container h1 {
        transform: none !important;
        width: 90%;
        font-size: 1.2rem;
    }

    .profile-flex {
        flex-direction: column;
    }

    .profile-table th {
        width: 35%;
    }
}