/* デザイン変数：ジャガイモカラーパレット */
:root {
    --potato-skin: #8D6E63; /* 皮の茶色 */
    --potato-inside: #FFF9C4; /* 中身のクリーム色 */
    --potato-dark: #4E342E; /* 深い土の色（テキスト用） */
    --potato-accent: #8BC34A; /* 芽の緑（アクセント） */
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 2;
    color: var(--potato-dark);
    background-color: var(--bg-light);
}

ruby rt {
    font-size: 0.6em;
    line-height: 1;
    letter-spacing: 0;
    font-weight: normal;
}

/* ヘッダー */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--potato-skin);
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-bottom {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.header-character {
    height: 80px;
    width: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--potato-skin);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--potato-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--potato-skin);
}

/* ヒーローセクション */
.hero {
    background-color: var(--potato-inside);
    padding: 100px 5%;
    text-align: center;
    border-bottom: 10px solid var(--potato-skin);
}

.hero-text {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--potato-dark);
}


.hero p {
    font-size: 1.2rem;
    color: var(--potato-skin);
    font-weight: bold;
}

/* セクション共通 */
section {
    padding: 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--potato-accent);
}

/* 会社概要テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    width: 30%;
    background-color: #f9f4e8;
}

/* サービスカード */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--potato-skin);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--potato-skin);
}

/* お問い合わせボタン */
.btn {
    display: inline-block;
    background-color: var(--potato-skin);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: var(--potato-dark);
}

/* フッター */
footer {
    background-color: var(--potato-dark);
    color: var(--white);
    padding: 40px 5%;
    margin-top: 50px;
}

.footer-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-center {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.footer-character {
    height: 100px;
    width: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.footer-info {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links a:hover {
    opacity: 1;
}

/* 制作中アプリ一覧 */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
}

.app-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    user-select: none;
    -webkit-user-drag: none;
}

.app-title {
    font-size: 0.82rem;
    line-height: 1.8;
    text-align: center;
}

/* サブセクション */
.works-subsection {
    margin-top: 50px;
}

.works-subsection h3 {
    font-size: 1.4rem;
    color: var(--potato-skin);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--potato-accent);
}

/* ラインスタンプ */
.stamp-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.stamp-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.stamp-link-area {
    text-align: center;
    margin-top: 20px;
}

/* プライバシーポリシー */
.policy-updated {
    text-align: center;
    color: var(--potato-skin);
    margin-bottom: 40px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h3 {
    font-size: 1.3rem;
    color: var(--potato-skin);
    border-left: 6px solid var(--potato-accent);
    padding-left: 12px;
    margin-bottom: 15px;
}

.policy-section p {
    margin-bottom: 10px;
}

.policy-effective-date {
    text-align: right;
    margin-top: 60px;
    color: var(--potato-skin);
}

@media (max-width: 768px) {
    .header-top { flex-direction: column; }
    nav ul { margin-top: 15px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-content { flex-direction: column; gap: 20px; }
    .header-character { height: 60px; }
    .footer-wrapper { flex-direction: column; align-items: center; gap: 20px; }
    .footer-center { padding: 0; }
    .footer-character { height: 70px; }
}
